OSDN Git Service

PR target/20093
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Apr 2005 08:21:31 +0000 (08:21 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Apr 2005 08:21:31 +0000 (08:21 +0000)
* simplify-rtx.c (simplify_unary_operation_1): Check
SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.

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

gcc/ChangeLog
gcc/simplify-rtx.c

index f6695a2..0b30d17 100644 (file)
@@ -1,3 +1,9 @@
+2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
+
+       PR target/20093
+       * simplify-rtx.c (simplify_unary_operation_1): Check
+       SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
+
 2005-04-06  James E Wilson  <wilson@specifixinc.com>
 
        PR target/20717
index 865d6f9..de7ed38 100644 (file)
@@ -570,7 +570,7 @@ simplify_unary_operation_1 (enum rtx_code code, enum machine_mode mode, rtx op)
         target mode is the same as the variable's promotion.  */
       if (GET_CODE (op) == SUBREG
          && SUBREG_PROMOTED_VAR_P (op)
-         && SUBREG_PROMOTED_UNSIGNED_P (op)
+         && SUBREG_PROMOTED_UNSIGNED_P (op) > 0
          && GET_MODE (XEXP (op, 0)) == mode)
        return XEXP (op, 0);