]> gcc.gnu.org Git - gcc.git/commitdiff
Fix core dump while compiling gdb-4.16.
authorJim Wilson <wilson@cygnus.com>
Tue, 31 Mar 1998 19:20:08 +0000 (19:20 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 31 Mar 1998 19:20:08 +0000 (11:20 -0800)
* alpha.md (extzv): Correct check for valid operand[2] values.

From-SVN: r18920

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

index 9105c222d1b9ce8dda3849b0d6102b167e06d1ec..9f8b341257afdb98bf6d8a10d1aef88d8dee6faa 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 2c24f9ee91f2537676bff6f31dcf86677efd9708..1dffe909b6673eb28308f3369ae78cfb0c6a026b 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)
This page took 0.075101 seconds and 5 git commands to generate.