PR target/55754
* config/arm/arm.c (arm_canonicalize_comparison): Remove
op0_preserve_value check for zero_extend to and transformation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194636
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-12-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
+
+ PR target/55754
+ * config/arm/arm.c (arm_canonicalize_comparison): Remove
+ op0_preserve_value check for zero_extend to and transformation.
+
2012-12-20 Teresa Johnson <tejohnson@google.com>
Jakub Jelinek <jakub@redhat.com>
/* If *op0 is (zero_extend:SI (subreg:QI (reg:SI) 0)) and comparing
with const0_rtx, change it to (and:SI (reg:SI) (const_int 255)),
to facilitate possible combining with a cmp into 'ands'. */
- if (!op0_preserve_value
- && mode == SImode
+ if (mode == SImode
&& GET_CODE (*op0) == ZERO_EXTEND
&& GET_CODE (XEXP (*op0, 0)) == SUBREG
&& GET_MODE (XEXP (*op0, 0)) == QImode