aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/simplify-rtx.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9c5af01..6755836 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2005-02-23 Roger Sayle <roger@eyesopen.com>
+
+ 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.
+
2005-02-23 David Edelsohn <edelsohn@gnu.org>
* t-aix43 (SHLIB_INSTALL): Create directory for shared library.
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index b7132ed..a2cd612 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)