]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR testsuite/24962 (gcc.target/ia64/20030811-1.c (test for excess errors) fails...
authorSteve Ellcey <sje@cup.hp.com>
Fri, 20 Jan 2006 18:29:44 +0000 (18:29 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Fri, 20 Jan 2006 18:29:44 +0000 (18:29 +0000)
PR testsuite/24962
* gcc.target/ia64/20030811-1.c: Change 'long' to 'long long'.

From-SVN: r110034

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/ia64/20030811-1.c

index 78e2311a9a2b76930f05ffa83409d45f8071e45d..3077f6845f9af50497ad36800b32c449ec9dc81c 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-20  Steve Ellcey  <sje@cup.hp.com>
+
+       PR testsuite/24962
+       * gcc.target/ia64/20030811-1.c: Change 'long' to 'long long'.
+
 2006-01-20  Richard Guenther  <rguenther@suse.de>
        Steven Bosscher <stevenb.gcc@gmail.com>
 
index d162794f594c1487ca9fbc3ba653f524779604f9..45f78b36190568802a1ad9cdbc03373d7d427b1b 100644 (file)
@@ -2,23 +2,23 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -frename-registers" } */
 
-static inline unsigned long
+static inline unsigned long long
 foo (void)
 {
-  unsigned long x;
+  unsigned long long x;
   __asm__ __volatile__ ("" : "=r" (x) :: "memory");
   return x;
 }
 
 static inline void
-bar (unsigned long x, unsigned long y)
+bar (unsigned long long x, unsigned long long y)
 {
   __asm__ __volatile__ ("" :: "r"(x), "r"(y) : "memory");
 }
 
 static inline void
-baz (unsigned long x, unsigned long y, unsigned long z, unsigned long p,
-     unsigned long q)
+baz (unsigned long long x, unsigned long long y, unsigned long long z,
+     unsigned long long p, unsigned long long q)
 {
   __asm__ __volatile__ ("" :: "r" (q << 2) : "memory");
   __asm__ __volatile__ ("" :: "r" (z) : "memory");
@@ -28,10 +28,10 @@ baz (unsigned long x, unsigned long y, unsigned long z, unsigned long p,
     __asm__ __volatile__ ("" :: "r" (y), "r" (p) : "memory");
 }
 
-static inline unsigned long
-ffz (unsigned long x)
+static inline unsigned long long
+ffz (unsigned long long x)
 {
-  unsigned long r;
+  unsigned long long r;
   __asm__ ("" : "=r" (r) : "r" (x & (~x - 1)));
   return r;
 }
@@ -41,19 +41,19 @@ void die (const char *, ...) __attribute__ ((noreturn));
 void
 test (void *x)
 {
-  unsigned long a, c;
+  unsigned long long a, c;
 
   a = foo ();
-  bar (0xc000000000000000, 0x660);
-  bar (0xa00000000000c000, 0x539);
-  baz (2, 1, 0xa000000000008000,
-       ({ unsigned long b;
-         b = ({ unsigned long d; __asm__ ("" : "=r" (d) : "r" (x)); d; })
-             + 0x10000000000661;
+  bar (0xc000000000000000LL, 0x660);
+  bar (0xa00000000000c000LL, 0x539);
+  baz (2, 1, 0xa000000000008000LL,
+       ({ unsigned long long b;
+         b = ({ unsigned long long d; __asm__ ("" : "=r" (d) : "r" (x)); d; })
+             + 0x10000000000661LL;
          b;
        }),
        14);
-  c = ffz (0x1fffffffffffffff);
+  c = ffz (0x1fffffffffffffffLL);
   if (c < 51 || c > 61)
     die ("die", c - 1);
 }