summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1994-06-29 02:41:26 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1994-06-29 02:41:26 +0000
commit79a2edaebb2e0244ff505002586ff116b341bb72 (patch)
tree6a0f61cc4a939b7d4c6669dfcca1ff64ee1e6535 /gcc/combine.c
parentd2fa4ea598d75a6013157db9c6f027743277bdc7 (diff)
downloadgcc-79a2edaebb2e0244ff505002586ff116b341bb72.tar.gz
(simplify_set): Evaluate HAVE_conditional_move at runtime.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index b32f3fed35f..38dca46f704 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -4348,8 +4348,6 @@ simplify_set (x)
}
#endif
-#ifndef HAVE_conditional_move
-
/* If we don't have a conditional move, SET_SRC is an IF_THEN_ELSE, and we
are comparing an item known to be 0 or -1 against 0, use a logical
operation instead. Check for one of the arms being an IOR of the other
@@ -4358,6 +4356,9 @@ simplify_set (x)
if (GET_CODE (dest) != PC
&& GET_CODE (src) == IF_THEN_ELSE
+#ifdef HAVE_conditional_move
+ && ! HAVE_conditional_move
+#endif
&& (GET_CODE (XEXP (src, 0)) == EQ || GET_CODE (XEXP (src, 0)) == NE)
&& XEXP (XEXP (src, 0), 1) == const0_rtx
&& (num_sign_bit_copies (XEXP (XEXP (src, 0), 0),
@@ -4396,7 +4397,6 @@ simplify_set (x)
src = SET_SRC (x);
}
-#endif
/* If either SRC or DEST is a CLOBBER of (const_int 0), make this
whole thing fail. */