From: Richard Henderson Date: Wed, 25 Jul 2001 17:34:04 +0000 (-0700) Subject: alpha.c (alpha_emit_conditional_move): Always swap GE/GT if its an fp comparison. X-Git-Tag: prereleases/libstdc++-3.0.95~3052 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f19d92763d69822d82f565382bd87006b8fecf;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a867ed71d888..3e9f613975bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ -2001-07-19 Andrew Haley +2001-07-25 Richard Henderson + + * config/alpha/alpha.c (alpha_emit_conditional_move): Always + swap GE/GT if its an fp comparison. + +2001-07-25 Andrew Haley * alias.c (rtx_equal_for_memref_p): Allow strings as types in operands. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 1abf97b5a46a..d36adcc000f0 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -1905,7 +1905,7 @@ alpha_emit_setcc (code) break; 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. */ if (!fp_p && op1 == const0_rtx) break; @@ -1996,8 +1996,9 @@ alpha_emit_conditional_move (cmp, mode) break; case GE: case GT: case GEU: case GTU: - /* These must be swapped. */ - if (op1 == CONST0_RTX (cmp_mode)) + /* These normally need swapping, but for integer zero we have + special patterns that recognize swapped operands. */ + if (!fp_p && op1 == const0_rtx) cmp_code = code, code = NE; else {