]> git.ipfire.org Git - thirdparty/gcc.git/commit
mips.h (MASK_FIX_VR4122, [...]): New macros.
authorDJ Delorie <dj@redhat.com>
Wed, 24 Mar 2004 13:05:40 +0000 (08:05 -0500)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 24 Mar 2004 13:05:40 +0000 (13:05 +0000)
commitc235ddf27585e26c1e86bfec25e72bfef0debba0
treed684b4f746c0f54995bb8c16528a406782106323
parentcf768d70b2beb8d16e558094ed518405b3046661
mips.h (MASK_FIX_VR4122, [...]): New macros.

* config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
(TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
(ASM_SPEC): Pass down -mfix-vr4122-bugs.
* config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
(mips_init_libfuncs): Use special functions for divsi3 and modsi3
if TARGET_FIX_VR4122.
* config/mips/mips.md (define_attr length): Account for nops inserted
after macc and dmult when using -mfix-vr4122-bugs.
(umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
* config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
LIB2FUNCS_EXTRA.  Add config/mips/vr4122-div.S.
* config/mips/vr4122-div.S: New file.
* doc/invoke.texi: Document -mfix-vr4122-bugs.

Co-Authored-By: Richard Sandiford <rsandifo@redhat.com>
From-SVN: r79912
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/config/mips/t-vr
gcc/config/mips/vr4122-div.S [new file with mode: 0644]
gcc/doc/invoke.texi