OSDN Git Service

PR target/34856
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr34856.c
index 7900cc3..786639b 100644 (file)
@@ -2,11 +2,13 @@
 /* { dg-options "-O2" } */
 /* { dg-options "-O2 -msse2" { target { i?86-*-* x86_64-*-* } } } */
 
+typedef unsigned __attribute__ ((__mode__ (__pointer__))) uintptr_t;
+
 #undef __vector
-#define __vector __attribute__((vector_size(16) ))
+#define __vector __attribute__ ((__vector_size__ (16)))
 
 typedef __vector signed char qword;
-typedef __vector unsigned int VU32;
+typedef __vector uintptr_t VU;
 
 extern short g[192 + 16];
 
@@ -14,8 +16,9 @@ void f (qword);
 
 void f1 (unsigned ctr)
 {
-  VU32 pin;
-  pin = (VU32){(unsigned int) &g[16]};
+  VU pin;
+
+  pin = (VU){(uintptr_t) &g[16]};
   do
     {
       f ((qword) pin);