Commit d819472d by Uros Bizjak

re PR target/42891 (ice in extract_insn, at recog.c:2097)

	PR target/42891
	* config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
	in the call to gen_x86_movsicc_0_m1.

testsuite/ChangeLog:

	PR target/42891
	* gcc.target/i386/pr42891.c: New test.

From-SVN: r156327
parent 8c0b91b4
2010-01-28 Uros Bizjak <ubizjak@gmail.com>
PR target/42891
* config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
in the call to gen_x86_movsicc_0_m1.
2010-01-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/42871
......
......@@ -15381,7 +15381,7 @@ ix86_expand_int_movcc (rtx operands[])
enum rtx_code code = GET_CODE (operands[1]), compare_code;
rtx compare_seq, compare_op;
enum machine_mode mode = GET_MODE (operands[0]);
bool sign_bit_compare_p = false;;
bool sign_bit_compare_p = false;
start_sequence ();
ix86_compare_op0 = XEXP (operands[1], 0);
......@@ -15422,7 +15422,6 @@ ix86_expand_int_movcc (rtx operands[])
if (!sign_bit_compare_p)
{
rtx flags;
rtx (*insn)(rtx, rtx, rtx);
bool fpcmp = false;
compare_code = GET_CODE (compare_op);
......@@ -15463,11 +15462,10 @@ ix86_expand_int_movcc (rtx operands[])
tmp = gen_reg_rtx (mode);
if (mode == DImode)
insn = gen_x86_movdicc_0_m1;
emit_insn (gen_x86_movdicc_0_m1 (tmp, flags, compare_op));
else
insn = gen_x86_movsicc_0_m1;
emit_insn (insn (tmp, flags, compare_op));
emit_insn (gen_x86_movsicc_0_m1 (gen_lowpart (SImode, tmp),
flags, compare_op));
}
else
{
......
2010-01-28 Uros Bizjak <ubizjak@gmail.com>
PR target/42891
* gcc.target/i386/pr42891.c: New test.
2010-01-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/42871
......
/* { dg-do compile } */
/* { dg-options "-O2" } */
union B { int i; float f; };
extern void bar (void);
void
foo (union B x, union B y)
{
if (!(y.f > x.i))
bar ();
}
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