summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-23 18:20:52 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-23 18:20:52 +0000
commitfeba5c4bb38a147cf06a4e60056ae0d7bc9cb824 (patch)
tree96f5f39f15b7631322e11e381c095d01a16dce65 /gcc/simplify-rtx.c
parent6e4cbf72bd1fa345ecb193c368dac819b0239ff5 (diff)
downloadgcc-feba5c4bb38a147cf06a4e60056ae0d7bc9cb824.tar.gz
PR target/20018
PR rtl-optimization/20097 * simplify-rtx.c (simplify_relational_operation_1): Avoid creating BImode SUBREGs of SImode registers which confuse the ia64 backend. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95461 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index b7132ed2fb7..a2cd612f92d 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -2887,6 +2887,8 @@ simplify_relational_operation_1 (enum rtx_code code, enum machine_mode mode,
&& op1 == const0_rtx
&& GET_MODE_CLASS (mode) == MODE_INT
&& cmp_mode != VOIDmode
+ /* ??? Work-around BImode bugs in the ia64 backend. */
+ && mode != BImode
&& cmp_mode != BImode
&& nonzero_bits (op0, cmp_mode) == 1
&& STORE_FLAG_VALUE == 1)