Commit 56f19d92 by Richard Henderson

alpha.c (alpha_emit_conditional_move): Always swap GE/GT if its an fp comparison.

        * config/alpha/alpha.c (alpha_emit_conditional_move): Always
        swap GE/GT if its an fp comparison.

From-SVN: r44360
parent a9e83c1b
2001-07-19 Andrew Haley <aph@cambridge.redhat.com> 2001-07-25 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (alpha_emit_conditional_move): Always
swap GE/GT if its an fp comparison.
2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
* alias.c (rtx_equal_for_memref_p): Allow strings as types in * alias.c (rtx_equal_for_memref_p): Allow strings as types in
operands. operands.
......
...@@ -1905,7 +1905,7 @@ alpha_emit_setcc (code) ...@@ -1905,7 +1905,7 @@ alpha_emit_setcc (code)
break; break;
case GE: case GT: case GEU: case GTU: case GE: case GT: case GEU: case GTU:
/* These are normally need swapping, but for integer zero we have /* These normally need swapping, but for integer zero we have
special patterns that recognize swapped operands. */ special patterns that recognize swapped operands. */
if (!fp_p && op1 == const0_rtx) if (!fp_p && op1 == const0_rtx)
break; break;
...@@ -1996,8 +1996,9 @@ alpha_emit_conditional_move (cmp, mode) ...@@ -1996,8 +1996,9 @@ alpha_emit_conditional_move (cmp, mode)
break; break;
case GE: case GT: case GEU: case GTU: case GE: case GT: case GEU: case GTU:
/* These must be swapped. */ /* These normally need swapping, but for integer zero we have
if (op1 == CONST0_RTX (cmp_mode)) special patterns that recognize swapped operands. */
if (!fp_p && op1 == const0_rtx)
cmp_code = code, code = NE; cmp_code = code, code = NE;
else else
{ {
......
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