aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-09-21 13:33:38 +0000
committerRichard Stallman <rms@gnu.org>1992-09-21 13:33:38 +0000
commitcc4710825df88d6d2475ad25d7decaf02758cd4d (patch)
tree927d5f8252f40f6844854624b26eca27cffec5c0 /gcc/combine.c
parente404a39a9c7a3867132194bc09c37fa94cf80f86 (diff)
downloadgcc-cc4710825df88d6d2475ad25d7decaf02758cd4d.zip
gcc-cc4710825df88d6d2475ad25d7decaf02758cd4d.tar.gz
gcc-cc4710825df88d6d2475ad25d7decaf02758cd4d.tar.bz2
(make_extraction): Make test whether to use AND or
{SIGN,ZERO}_EXTRACT depend on UNSIGNEDP. From-SVN: r2202
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index bc1cc9b..05c7c94 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -4631,10 +4631,10 @@ make_extraction (mode, inner, pos, pos_rtx, len,
mode, new));
}
- /* Unless this isin a COMPARE or we have a funny memory reference,
- don't do anything with field extracts starting at the low-order
- bit since they are simple AND operations. */
- if (pos == 0 && ! in_dest && ! in_compare && ! spans_byte)
+ /* Unless this is a COMPARE or we have a funny memory reference,
+ don't do anything with zero-extending field extracts starting at
+ the low-order bit since they are simple AND operations. */
+ if (pos == 0 && ! in_dest && ! in_compare && ! spans_byte && unsignedp)
return 0;
/* Get the mode to use should INNER be a MEM, the mode for the position,