6c28e07
commit a0d97e88ec6d71239d30a5a4b2b129e094150873
6c28e07
Author: Mark Wielaard <mark@klomp.org>
6c28e07
Date:   Thu Dec 6 20:52:22 2018 +0100
6c28e07
6c28e07
    Bug 401822 Fix asm constraints for ppc64 jm-vmx jm-insns.c test.
6c28e07
    
6c28e07
    The mfvscr and vor instructions in jm-insns.c had a "=vr" constraint.
6c28e07
    This should have been an "=v" constraint. This resolved assembler
6c28e07
    warnings and the testcase failing on ppc64le with gcc 8.2 and
6c28e07
    binutils 2.30.
6c28e07
6c28e07
diff --git a/none/tests/ppc32/jm-insns.c b/none/tests/ppc32/jm-insns.c
6c28e07
index e1a7da9..be02425 100644
6c28e07
--- a/none/tests/ppc32/jm-insns.c
6c28e07
+++ b/none/tests/ppc32/jm-insns.c
6c28e07
@@ -6269,7 +6269,7 @@ static void test_av_int_one_arg (const char* name, test_func_t func,
6c28e07
    for (i=0; i
6c28e07
       /* Save flags */
6c28e07
       __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
 
6c28e07
       vec_in  = (vector unsigned int)viargs[i];
6c28e07
       vec_out = (vector unsigned int){ 0,0,0,0 };
6c28e07
@@ -6287,11 +6287,11 @@ static void test_av_int_one_arg (const char* name, test_func_t func,
6c28e07
       (*func)();
6c28e07
       
6c28e07
       // retrieve output <- r17
6c28e07
-      __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+      __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
 
6c28e07
       // get CR,VSCR flags
6c28e07
       __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
       
abf2307
       /* Restore flags */
abf2307
       __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -6333,7 +6333,7 @@ static void test_av_int_two_args (const char* name, test_func_t func,
abf2307
          
abf2307
          /* Save flags */
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
 
abf2307
          // reset VSCR and CR
abf2307
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -6349,11 +6349,11 @@ static void test_av_int_two_args (const char* name, test_func_t func,
abf2307
          (*func)();
abf2307
 
abf2307
          // retrieve output <- r17
abf2307
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
          
abf2307
          // get CR,VSCR flags
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
          
abf2307
          /* Restore flags */
abf2307
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -6401,7 +6401,7 @@ static void test_av_int_three_args (const char* name, test_func_t func,
abf2307
             
abf2307
             /* Save flags */
abf2307
             __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
 
abf2307
             // reset VSCR and CR
abf2307
             vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -6418,11 +6418,11 @@ static void test_av_int_three_args (const char* name, test_func_t func,
abf2307
             (*func)();
abf2307
             
abf2307
             // retrieve output <- r17
abf2307
-            __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+            __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
             
abf2307
             // get CR,VSCR flags
abf2307
             __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
             
abf2307
             /* Restore flags */
abf2307
             __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -6475,7 +6475,7 @@ static void vs128_cb (const char* name, test_func_t func,
abf2307
          
abf2307
          /* Save flags */
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
 
abf2307
          // reset VSCR and CR
abf2307
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -6491,11 +6491,11 @@ static void vs128_cb (const char* name, test_func_t func,
abf2307
          (*func)();
abf2307
          
abf2307
          // retrieve output <- r17
abf2307
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
          
abf2307
          // get CR,VSCR flags
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
          
abf2307
          /* Restore flags */
abf2307
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -6548,7 +6548,7 @@ static void vsplt_cb (const char* name, test_func_t func_IN,
abf2307
 
abf2307
          /* Save flags */
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
 
abf2307
          // reset VSCR and CR
abf2307
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -6563,11 +6563,11 @@ static void vsplt_cb (const char* name, test_func_t func_IN,
abf2307
          (*func)();
abf2307
          
abf2307
          // retrieve output <- r17
abf2307
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
          
abf2307
          // get CR,VSCR flags
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
          
abf2307
          /* Restore flags */
abf2307
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -6615,7 +6615,7 @@ static void vspltis_cb (const char* name, test_func_t func_IN,
abf2307
       
abf2307
       /* Save flags */
abf2307
       __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
       
abf2307
       // reset VSCR and CR
abf2307
       vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -6627,11 +6627,11 @@ static void vspltis_cb (const char* name, test_func_t func_IN,
abf2307
       (*func)();
abf2307
       
abf2307
       // retrieve output <- r17
abf2307
-      __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+      __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
       
abf2307
       // get CR,VSCR flags
abf2307
       __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
       
abf2307
       /* Restore flags */
abf2307
       __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -6677,7 +6677,7 @@ static void vsldoi_cb (const char* name, test_func_t func_IN,
abf2307
             
abf2307
             /* Save flags */
abf2307
             __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
             
abf2307
             // reset VSCR and CR
abf2307
             vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -6693,11 +6693,11 @@ static void vsldoi_cb (const char* name, test_func_t func_IN,
abf2307
             (*func)();
abf2307
          
abf2307
             // retrieve output <- r17
abf2307
-            __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+            __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
             
abf2307
             // get CR,VSCR flags
abf2307
             __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
             
abf2307
             /* Restore flags */
abf2307
             __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -6750,7 +6750,7 @@ static void lvs_cb (const char *name, test_func_t func,
abf2307
 
abf2307
       /* Save flags */
abf2307
       __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
       
abf2307
       // reset VSCR and CR
abf2307
       vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -6762,11 +6762,11 @@ static void lvs_cb (const char *name, test_func_t func,
abf2307
       (*func)();
abf2307
       
abf2307
       // retrieve output <- r17
abf2307
-      __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+      __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
          
abf2307
       // get CR,VSCR flags
abf2307
       __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
       
abf2307
       /* Restore flags */
abf2307
       __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -6870,7 +6870,7 @@ static void test_av_int_ld_two_regs (const char *name,
abf2307
          
abf2307
          /* Save flags */
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
          
abf2307
          // reset VSCR and CR
abf2307
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -6882,11 +6882,11 @@ static void test_av_int_ld_two_regs (const char *name,
abf2307
          (*func)();
abf2307
          
abf2307
          // retrieve output <- r17
abf2307
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
          
abf2307
          // get CR,VSCR flags
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
          
abf2307
          /* Restore flags */
abf2307
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -6956,7 +6956,7 @@ static void test_av_int_st_three_regs (const char *name,
abf2307
 
abf2307
          /* Save flags */
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
          
abf2307
          // reset VSCR and CR
abf2307
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -6974,7 +6974,7 @@ static void test_av_int_st_three_regs (const char *name,
abf2307
          
abf2307
          // get CR,VSCR flags
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
          
abf2307
          /* Restore flags */
abf2307
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -7037,7 +7037,7 @@ static void test_av_float_one_arg (const char* name, test_func_t func,
abf2307
       
abf2307
       /* Save flags */
abf2307
       __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
 
abf2307
       // reset VSCR and CR
abf2307
       vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -7052,11 +7052,11 @@ static void test_av_float_one_arg (const char* name, test_func_t func,
abf2307
       (*func)();
abf2307
       
abf2307
       // retrieve output <- r17
abf2307
-      __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+      __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
       
abf2307
       // get CR,VSCR flags
abf2307
       __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
       
abf2307
       /* Restore flags */
abf2307
       __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -7099,7 +7099,7 @@ static void test_av_float_two_args (const char* name, test_func_t func,
abf2307
 
abf2307
          /* Save flags */
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
 
abf2307
          // reset VSCR and CR
abf2307
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -7115,11 +7115,11 @@ static void test_av_float_two_args (const char* name, test_func_t func,
abf2307
          (*func)();
abf2307
 
abf2307
          // retrieve output <- r17
abf2307
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
 
abf2307
          // get CR,VSCR flags
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
 
abf2307
          /* Restore flags */
abf2307
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -7168,7 +7168,7 @@ static void test_av_float_three_args (const char* name, test_func_t func,
abf2307
             
abf2307
             /* Save flags */
abf2307
             __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
 
abf2307
             // reset VSCR and CR
abf2307
             vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -7185,11 +7185,11 @@ static void test_av_float_three_args (const char* name, test_func_t func,
abf2307
             (*func)();
abf2307
 
abf2307
             // retrieve output <- r17
abf2307
-            __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+            __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
 
abf2307
             // get CR,VSCR flags
abf2307
             __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
 
abf2307
             /* Restore flags */
abf2307
             __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
@@ -7276,7 +7276,7 @@ static void vcvt_cb (const char* name, test_func_t func_IN,
abf2307
          
abf2307
          /* Save flags */
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
 
abf2307
          // reset VSCR and CR
abf2307
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
abf2307
@@ -7291,11 +7291,11 @@ static void vcvt_cb (const char* name, test_func_t func_IN,
abf2307
          (*func)();
abf2307
          
abf2307
          // retrieve output <- r17
abf2307
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
          
abf2307
          // get CR,VSCR flags
abf2307
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
abf2307
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
abf2307
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
abf2307
          
abf2307
          /* Restore flags */
abf2307
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
abf2307
abf2307
diff --git a/none/tests/ppc64/jm-insns.c b/none/tests/ppc64/jm-insns.c
abf2307
index e1a7da9..be02425 100644
abf2307
--- a/none/tests/ppc64/jm-insns.c
abf2307
+++ b/none/tests/ppc64/jm-insns.c
abf2307
@@ -6269,7 +6269,7 @@ static void test_av_int_one_arg (const char* name, test_func_t func,
abf2307
    for (i=0; i
abf2307
       /* Save flags */
abf2307
       __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
abf2307
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
abf2307
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
abf2307
 
abf2307
       vec_in  = (vector unsigned int)viargs[i];
abf2307
       vec_out = (vector unsigned int){ 0,0,0,0 };
abf2307
@@ -6287,11 +6287,11 @@ static void test_av_int_one_arg (const char* name, test_func_t func,
abf2307
       (*func)();
abf2307
       
abf2307
       // retrieve output <- r17
abf2307
-      __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
abf2307
+      __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
abf2307
 
abf2307
       // get CR,VSCR flags
abf2307
       __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
       
6c28e07
       /* Restore flags */
6c28e07
       __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -6333,7 +6333,7 @@ static void test_av_int_two_args (const char* name, test_func_t func,
6c28e07
          
6c28e07
          /* Save flags */
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
 
6c28e07
          // reset VSCR and CR
6c28e07
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -6349,11 +6349,11 @@ static void test_av_int_two_args (const char* name, test_func_t func,
6c28e07
          (*func)();
6c28e07
 
6c28e07
          // retrieve output <- r17
6c28e07
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
          
6c28e07
          // get CR,VSCR flags
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
          
6c28e07
          /* Restore flags */
6c28e07
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -6401,7 +6401,7 @@ static void test_av_int_three_args (const char* name, test_func_t func,
6c28e07
             
6c28e07
             /* Save flags */
6c28e07
             __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
 
6c28e07
             // reset VSCR and CR
6c28e07
             vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -6418,11 +6418,11 @@ static void test_av_int_three_args (const char* name, test_func_t func,
6c28e07
             (*func)();
6c28e07
             
6c28e07
             // retrieve output <- r17
6c28e07
-            __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+            __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
             
6c28e07
             // get CR,VSCR flags
6c28e07
             __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
             
6c28e07
             /* Restore flags */
6c28e07
             __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -6475,7 +6475,7 @@ static void vs128_cb (const char* name, test_func_t func,
6c28e07
          
6c28e07
          /* Save flags */
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
 
6c28e07
          // reset VSCR and CR
6c28e07
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -6491,11 +6491,11 @@ static void vs128_cb (const char* name, test_func_t func,
6c28e07
          (*func)();
6c28e07
          
6c28e07
          // retrieve output <- r17
6c28e07
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
          
6c28e07
          // get CR,VSCR flags
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
          
6c28e07
          /* Restore flags */
6c28e07
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -6548,7 +6548,7 @@ static void vsplt_cb (const char* name, test_func_t func_IN,
6c28e07
 
6c28e07
          /* Save flags */
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
 
6c28e07
          // reset VSCR and CR
6c28e07
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -6563,11 +6563,11 @@ static void vsplt_cb (const char* name, test_func_t func_IN,
6c28e07
          (*func)();
6c28e07
          
6c28e07
          // retrieve output <- r17
6c28e07
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
          
6c28e07
          // get CR,VSCR flags
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
          
6c28e07
          /* Restore flags */
6c28e07
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -6615,7 +6615,7 @@ static void vspltis_cb (const char* name, test_func_t func_IN,
6c28e07
       
6c28e07
       /* Save flags */
6c28e07
       __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
       
6c28e07
       // reset VSCR and CR
6c28e07
       vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -6627,11 +6627,11 @@ static void vspltis_cb (const char* name, test_func_t func_IN,
6c28e07
       (*func)();
6c28e07
       
6c28e07
       // retrieve output <- r17
6c28e07
-      __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+      __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
       
6c28e07
       // get CR,VSCR flags
6c28e07
       __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
       
6c28e07
       /* Restore flags */
6c28e07
       __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -6677,7 +6677,7 @@ static void vsldoi_cb (const char* name, test_func_t func_IN,
6c28e07
             
6c28e07
             /* Save flags */
6c28e07
             __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
             
6c28e07
             // reset VSCR and CR
6c28e07
             vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -6693,11 +6693,11 @@ static void vsldoi_cb (const char* name, test_func_t func_IN,
6c28e07
             (*func)();
6c28e07
          
6c28e07
             // retrieve output <- r17
6c28e07
-            __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+            __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
             
6c28e07
             // get CR,VSCR flags
6c28e07
             __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
             
6c28e07
             /* Restore flags */
6c28e07
             __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -6750,7 +6750,7 @@ static void lvs_cb (const char *name, test_func_t func,
6c28e07
 
6c28e07
       /* Save flags */
6c28e07
       __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
       
6c28e07
       // reset VSCR and CR
6c28e07
       vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -6762,11 +6762,11 @@ static void lvs_cb (const char *name, test_func_t func,
6c28e07
       (*func)();
6c28e07
       
6c28e07
       // retrieve output <- r17
6c28e07
-      __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+      __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
          
6c28e07
       // get CR,VSCR flags
6c28e07
       __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
       
6c28e07
       /* Restore flags */
6c28e07
       __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -6870,7 +6870,7 @@ static void test_av_int_ld_two_regs (const char *name,
6c28e07
          
6c28e07
          /* Save flags */
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
          
6c28e07
          // reset VSCR and CR
6c28e07
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -6882,11 +6882,11 @@ static void test_av_int_ld_two_regs (const char *name,
6c28e07
          (*func)();
6c28e07
          
6c28e07
          // retrieve output <- r17
6c28e07
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
          
6c28e07
          // get CR,VSCR flags
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
          
6c28e07
          /* Restore flags */
6c28e07
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -6956,7 +6956,7 @@ static void test_av_int_st_three_regs (const char *name,
6c28e07
 
6c28e07
          /* Save flags */
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
          
6c28e07
          // reset VSCR and CR
6c28e07
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -6974,7 +6974,7 @@ static void test_av_int_st_three_regs (const char *name,
6c28e07
          
6c28e07
          // get CR,VSCR flags
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
          
6c28e07
          /* Restore flags */
6c28e07
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -7037,7 +7037,7 @@ static void test_av_float_one_arg (const char* name, test_func_t func,
6c28e07
       
6c28e07
       /* Save flags */
6c28e07
       __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
 
6c28e07
       // reset VSCR and CR
6c28e07
       vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -7052,11 +7052,11 @@ static void test_av_float_one_arg (const char* name, test_func_t func,
6c28e07
       (*func)();
6c28e07
       
6c28e07
       // retrieve output <- r17
6c28e07
-      __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+      __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
       
6c28e07
       // get CR,VSCR flags
6c28e07
       __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-      __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+      __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
       
6c28e07
       /* Restore flags */
6c28e07
       __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -7099,7 +7099,7 @@ static void test_av_float_two_args (const char* name, test_func_t func,
6c28e07
 
6c28e07
          /* Save flags */
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
 
6c28e07
          // reset VSCR and CR
6c28e07
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -7115,11 +7115,11 @@ static void test_av_float_two_args (const char* name, test_func_t func,
6c28e07
          (*func)();
6c28e07
 
6c28e07
          // retrieve output <- r17
6c28e07
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
 
6c28e07
          // get CR,VSCR flags
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
 
6c28e07
          /* Restore flags */
6c28e07
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -7168,7 +7168,7 @@ static void test_av_float_three_args (const char* name, test_func_t func,
6c28e07
             
6c28e07
             /* Save flags */
6c28e07
             __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
 
6c28e07
             // reset VSCR and CR
6c28e07
             vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -7185,11 +7185,11 @@ static void test_av_float_three_args (const char* name, test_func_t func,
6c28e07
             (*func)();
6c28e07
 
6c28e07
             // retrieve output <- r17
6c28e07
-            __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+            __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
 
6c28e07
             // get CR,VSCR flags
6c28e07
             __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-            __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+            __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
 
6c28e07
             /* Restore flags */
6c28e07
             __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));
6c28e07
@@ -7276,7 +7276,7 @@ static void vcvt_cb (const char* name, test_func_t func_IN,
6c28e07
          
6c28e07
          /* Save flags */
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r"  (tmpcr));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (tmpvscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (tmpvscr));
6c28e07
 
6c28e07
          // reset VSCR and CR
6c28e07
          vscr = (vector unsigned int){ 0,0,0,DEFAULT_VSCR };
6c28e07
@@ -7291,11 +7291,11 @@ static void vcvt_cb (const char* name, test_func_t func_IN,
6c28e07
          (*func)();
6c28e07
          
6c28e07
          // retrieve output <- r17
6c28e07
-         __asm__ __volatile__ ("vor %0,17,17" : "=vr" (vec_out));
6c28e07
+         __asm__ __volatile__ ("vor %0,17,17" : "=v" (vec_out));
6c28e07
          
6c28e07
          // get CR,VSCR flags
6c28e07
          __asm__ __volatile__ ("mfcr   %0" : "=r" (flags));
6c28e07
-         __asm__ __volatile__ ("mfvscr %0" : "=vr" (vscr));
6c28e07
+         __asm__ __volatile__ ("mfvscr %0" : "=v" (vscr));
6c28e07
          
6c28e07
          /* Restore flags */
6c28e07
          __asm__ __volatile__ ("mtcr   %0" : : "r"  (tmpcr));