Fix thinko in previous sparc setcc changes.

* config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
	if we're comparing DImode and comparison is other than EQ or NE.

From-SVN: r180558
This commit is contained in:
David S. Miller 2011-10-27 04:04:06 +00:00 committed by David S. Miller
parent 56ec62fa1d
commit 78968b7620
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2011-10-26 David S. Miller <davem@davemloft.net>
* config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
if we're comparing DImode and comparison is other than EQ or NE.
* config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
LEU/LTU/GEU/GTU is attempted.
* config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn

View file

@ -2541,6 +2541,11 @@ emit_scc_insn (rtx operands[])
}
}
if (TARGET_V9
&& GET_MODE (x) == DImode
&& gen_v9_scc (operands[0], code, x, y))
return true;
/* We can do LTU and GEU using the addx/subx instructions too. And
for GTU/LEU, if both operands are registers swap them and fall
back to the easy case. */