aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-03-31 19:20:08 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-03-31 11:20:08 -0800
commit221a9f65a1cf81b1987c151515f668b774c2e65f (patch)
tree83ebf16c63913e4e8359b8b058db04fc85c82921
parenta7ebd547fb652723984d8df350c9196990d19fa3 (diff)
downloadgcc-221a9f65a1cf81b1987c151515f668b774c2e65f.zip
gcc-221a9f65a1cf81b1987c151515f668b774c2e65f.tar.gz
gcc-221a9f65a1cf81b1987c151515f668b774c2e65f.tar.bz2
Fix core dump while compiling gdb-4.16.
* alpha.md (extzv): Correct check for valid operand[2] values. From-SVN: r18920
-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)