OSDN Git Service

Fix core dump while compiling gdb-4.16.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Mar 1998 19:20:08 +0000 (19:20 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Mar 1998 19:20:08 +0000 (19:20 +0000)
* alpha.md (extzv): Correct check for valid operand[2] values.

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

gcc/ChangeLog
gcc/config/alpha/alpha.md

index 9105c22..9f8b341 100644 (file)
@@ -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.
 
index 2c24f9e..1dffe90 100644 (file)
   "
 {
   /* 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)