[testsuite] : Avoid 'overflow in implicit constant conversion' warning in gcc.target/i386/pr50275.c for x32

Submitted by Uros Bizjak on Sept. 25, 2012, 7:03 a.m.

Details

Message ID CAFULd4aRxdTiy+vi38i5q=5PsbwYczvAtC5CaZEJwdPJ-kxYWg@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Sept. 25, 2012, 7:03 a.m.
Hello!

2012-09-25  Uros Bizjak  <ubizjak@gmail.com>

        * gcc.target/i386/pr50725.c: Change 'long' to 'long long'.

Tested on x86_64-pc-linux-gnu, committed to mainline SVN.

Uros.

Patch hide | download patch | download mbox

Index: gcc.target/i386/pr50725.c
===================================================================
--- gcc.target/i386/pr50725.c	(revision 191688)
+++ gcc.target/i386/pr50725.c	(working copy)
@@ -39,7 +39,7 @@ 
   if (bar (22) != 24 || bar (20) != 128)
     abort ();
 #ifdef __x86_64__
-  register long r10 __asm__ ("r10") = 0xdeadbeefdeadbeefUL;
+  register long long r10 __asm__ ("r10") = 0xdeadbeefdeadbeefULL;
   asm volatile ("" : "+r" (r10));
 #endif
   if (baz (0, 0, 0, 0, 0, 0, 22) != 24 || baz (0, 0, 0, 0, 0, 0, 20) != 128)