diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1996-09-10 16:02:46 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1996-09-10 16:02:46 -0700 |
commit | 5107b750cbdec41939cd9ef81231fb3993633dff (patch) | |
tree | 77aa0229848e0a03b92b4031c32a1ca9bb119b65 | |
parent | 24f72d7685f12ad265bc7fcc670fb93d05950180 (diff) | |
download | gcc-5107b750cbdec41939cd9ef81231fb3993633dff.zip gcc-5107b750cbdec41939cd9ef81231fb3993633dff.tar.gz gcc-5107b750cbdec41939cd9ef81231fb3993633dff.tar.bz2 |
(mips_move_2words): Rewrite 32 bit shifts as 16 bit shifts.
From-SVN: r12696
-rw-r--r-- | gcc/config/mips/mips.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 09015bc..1bc47d4 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -1539,8 +1539,10 @@ mips_move_2words (operands, insn) } else { - operands[2] = GEN_INT (INTVAL (operands[1]) >> 32); - operands[1] = GEN_INT (INTVAL (operands[1]) << 32 >> 32); + /* We use multiple shifts here, to avoid warnings about out + of range shifts on 32 bit hosts. */ + operands[2] = GEN_INT (INTVAL (operands[1]) >> 16 >> 16); + operands[1] = GEN_INT (INTVAL (operands[1]) << 16 << 16 >> 16 >> 16); ret = "li\t%M0,%2\n\tli\t%L0,%1"; } } |