diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-24 18:47:25 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-24 18:47:25 +0000 |
commit | 7f2a4bd26b574b3faf331a289c2b1ec4be0d69ad (patch) | |
tree | 2d48537026a683c3f220816d7acfb3b5cf0fc28f /gcc/config/m68k | |
parent | ade3d93bd7e525ef4061990dea60ddf316ee5cfe (diff) | |
download | gcc-7f2a4bd26b574b3faf331a289c2b1ec4be0d69ad.tar.gz |
gcc/
PR target/28911
* config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
-2147483647 - 1 instead of 0x80000000.
gcc/testsuite/
PR target/28911
* gcc.dg/pr28911.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117181 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r-- | gcc/config/m68k/m68k.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index d00f131712e..ef6cb0484e2 100644 --- a/gcc/config/m68k/m68k.md +++ b/gcc/config/m68k/m68k.md @@ -3721,7 +3721,7 @@ target = operand_subword_force (operands[0], 0, SFmode); result = expand_binop (SImode, xor_optab, operand_subword_force (operands[1], 0, SFmode), - GEN_INT (0x80000000), target, 0, OPTAB_WIDEN); + GEN_INT (-2147483647 - 1), target, 0, OPTAB_WIDEN); gcc_assert (result); if (result != target) @@ -3748,7 +3748,7 @@ target = operand_subword (operands[0], 0, 1, DFmode); result = expand_binop (SImode, xor_optab, operand_subword_force (operands[1], 0, DFmode), - GEN_INT (0x80000000), target, 0, OPTAB_WIDEN); + GEN_INT (-2147483647 - 1), target, 0, OPTAB_WIDEN); gcc_assert (result); if (result != target) @@ -3780,7 +3780,7 @@ target = operand_subword (operands[0], 0, 1, XFmode); result = expand_binop (SImode, xor_optab, operand_subword_force (operands[1], 0, XFmode), - GEN_INT (0x80000000), target, 0, OPTAB_WIDEN); + GEN_INT (-2147483647 - 1), target, 0, OPTAB_WIDEN); gcc_assert (result); if (result != target) |