OSDN Git Service

* gcc.dg/guality/rotatetest.c (f5, f6): Fix up pastos.
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Jun 2011 06:08:42 +0000 (06:08 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Jun 2011 06:08:42 +0000 (06:08 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174632 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/rotatetest.c

index 781d752..6dd2803 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-04  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.dg/guality/rotatetest.c (f5, f6): Fix up pastos.
+
 2011-06-03  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/49276
index dff987c..64f5340 100644 (file)
@@ -46,7 +46,7 @@ f4 (unsigned int x)
 __attribute__((noclone, noinline)) unsigned int
 f5 (unsigned int x, int y)
 {
-  unsigned int f = (x << y) | (x >> (64 - y));
+  unsigned int f = (x << y) | (x >> (32 - y));
   unsigned int g = f;
   asm volatile ("" : "+r" (f));
   vv++;                /* { dg-final { gdb-test 52 "g" "f" } } */
@@ -56,7 +56,7 @@ f5 (unsigned int x, int y)
 __attribute__((noclone, noinline)) unsigned int
 f6 (unsigned int x, int y)
 {
-  unsigned int f = (x >> y) | (x << (64 - y));
+  unsigned int f = (x >> y) | (x << (32 - y));
   unsigned int g = f;
   asm volatile ("" : "+r" (f));
   vv++;                /* { dg-final { gdb-test 62 "g" "f" } } */