aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/config/alpha/alpha.md6
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9105c222..9f8b341 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
Tue Mar 31 16:57:33 1998 Jim Wilson <wilson@cygnus.com>
+ * alpha.md (extzv): Correct check for valid operand[2] values.
+
* profile.c (branch_prob): Add code to recognize HPPA tablejump entry
branch.
diff --git a/gcc/config/alpha/alpha.md b/gcc/config/alpha/alpha.md
index 2c24f9e..1dffe90 100644
--- a/gcc/config/alpha/alpha.md
+++ b/gcc/config/alpha/alpha.md
@@ -4880,7 +4880,11 @@
"
{
/* We can do 8, 16, 32 and 64 bit fields, if aligned on byte boundaries. */
- if (INTVAL (operands[2]) % 8 != 0 || INTVAL (operands[3]) % 8 != 0)
+ if (INTVAL (operands[3]) % 8 != 0
+ || (INTVAL (operands[2]) != 8
+ && INTVAL (operands[2]) != 16
+ && INTVAL (operands[2]) != 32
+ && INTVAL (operands[2]) != 64))
FAIL;
if (GET_CODE (operands[1]) == MEM)