re PR target/10795 (ICE in extract_insn, at recog.c:2188)

PR target/10795
	* config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
	swap comparison operands if doing so would generate an
	unrecognizable insn.

From-SVN: r69407
This commit is contained in:
Kazu Hirata 2003-07-15 13:42:39 +00:00 committed by Kazu Hirata
parent b5524f9497
commit 5df90541c7
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
PR target/10795
* config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
swap comparison operands if doing so would generate an
unrecognizable insn.
2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/11320

View File

@ -9383,6 +9383,11 @@ ix86_expand_carry_flag_compare (enum rtx_code code, rtx op0, rtx op1, rtx *pop)
return false;
code = (code == GTU ? GEU : LTU);
}
else if (!nonimmediate_operand (op1, mode)
|| !general_operand (op0, mode))
/* Swapping operands in this case would generate an
unrecognizable insn. */
return false;
else
{
rtx tmp = op1;