Commit ab1e659c by Kazu Hirata Committed by Kazu Hirata

re PR target/28911 (Cross compiler build for m68k--elf fails on x86_64-linux-gnu)

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.

From-SVN: r117181
parent 5997afc3
2006-09-24 Kazu Hirata <kazu@codesourcery.com>
PR target/28911
* config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
-2147483647 - 1 instead of 0x80000000.
2006-09-23 Revital1 Eres <ERES@il.ibm.com>
* flags.h (HONOR_NANS): Fix typo in comment.
......
......@@ -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)
......
2006-09-24 Kazu Hirata <kazu@codesourcery.com>
PR target/28911
* gcc.dg/pr28911.c: New.
2006-09-23 Uros Bizjak <uros@kss-loka.si>
PR target/29169
/* PR target/28911
The following used to cause crash on m68k-elf because 0x80000000
was used as an SImode constant. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -m68000" { target m68k-*-* } } */
_Complex float
foo (float a)
{
return __builtin_copysign (a != a, a);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment