aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/simplify-rtx.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f6695a2..0b30d17 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 865d6f9..de7ed38 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -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);