OSDN Git Service

* combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
authormkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Apr 2011 12:06:27 +0000 (12:06 +0000)
committermkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Apr 2011 12:06:27 +0000 (12:06 +0000)
for STORE_FLAG_VALUE==-1 case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172930 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/combine.c

index 505d743..a115d78 100644 (file)
@@ -1,3 +1,9 @@
+2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
+           Eric Botcazou <ebotcazou@adacore.com>
+
+       * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
+       for STORE_FLAG_VALUE==-1 case.
+
 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
 
        PR target/43804
index 240cd91..7bdbed4 100644 (file)
@@ -5787,7 +5787,10 @@ combine_simplify_rtx (rtx x, enum machine_mode op0_mode, int in_dest,
 
          /* If STORE_FLAG_VALUE is -1, we have cases similar to
             those above.  */
-         if (STORE_FLAG_VALUE == -1
+         if (in_cond)
+           ;
+
+         else if (STORE_FLAG_VALUE == -1
              && new_code == NE && GET_MODE_CLASS (mode) == MODE_INT
              && op1 == const0_rtx
              && (num_sign_bit_copies (op0, mode)