diff options
author | Richard Henderson <rth@cygnus.com> | 1999-08-25 17:59:14 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-08-25 17:59:14 -0700 |
commit | 5879933a92e9b01b6233b8e9c276446cc5ef0734 (patch) | |
tree | 784aeb2ac42cae85fbdec0c738e1b2884be51a89 /gcc/optabs.c | |
parent | 2cb3d06cd5646265ca86923337491bb496c9f221 (diff) | |
download | gcc-5879933a92e9b01b6233b8e9c276446cc5ef0734.zip gcc-5879933a92e9b01b6233b8e9c276446cc5ef0734.tar.gz gcc-5879933a92e9b01b6233b8e9c276446cc5ef0734.tar.bz2 |
optabs.c (emit_cmp_and_jump_insns): Be more thorough in canonization.
* optabs.c (emit_cmp_and_jump_insns): Be more thorough in
canonization.
From-SVN: r28885
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index dc74262..f840937 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -3299,7 +3299,8 @@ emit_cmp_and_jump_insns (x, y, comparison, size, mode, unsignedp, align, label) rtx op0; rtx op1; - if (CONSTANT_P (x)) + if ((CONSTANT_P (x) && ! CONSTANT_P (y)) + || (GET_CODE (x) == CONST_INT && GET_CODE (y) != CONST_INT)) { /* Swap operands and condition to ensure canonical RTL. */ op0 = y; |