testsuite: Assorted x32 testsuite fixes
authorUros Bizjak <ubizjak@gmail.com>
Fri, 13 Mar 2020 15:34:32 +0000 (16:34 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Fri, 13 Mar 2020 15:34:32 +0000 (16:34 +0100)
* gcc.target/i386/pr64409.c: Do not limit compilation to x32 targets.
(dg-error): Quote 'ms_abi' attribute.
* gcc.target/i386/pr71958.c: Do not limit compilation to x32 targets.
Require maybe_x32 effective target.
(dg-options): Add -mx32.
(dg-error): Quote 'ms_abi' attribute.
* gcc.target/i386/pr90096.c (dg-error): Update relative
location of target x32 error.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr64409.c
gcc/testsuite/gcc.target/i386/pr71958.c
gcc/testsuite/gcc.target/i386/pr90096.c

index 2f738fa..e7b8c88 100644 (file)
@@ -1,3 +1,14 @@
+2020-03-13  Uroš Bizjak  <ubizjak@gmail.com>
+
+       * gcc.target/i386/pr64409.c: Do not limit compilation to x32 targets.
+       (dg-error): Quote 'ms_abi' attribute.
+       * gcc.target/i386/pr71958.c: Do not limit compilation to x32 targets.
+       Require maybe_x32 effective target.
+       (dg-options): Add -mx32.
+       (dg-error): Quote 'ms_abi' attribute.
+       * gcc.target/i386/pr90096.c (dg-error): Update relative
+       location of target x32 error.
+
 2020-03-13  Patrick Palka  <ppalka@redhat.com>
 
        PR c++/67960
index 7bf9d1e..9df9c18 100644 (file)
@@ -1,6 +1,6 @@
-/* { dg-do compile { target x32 } } */
+/* { dg-do compile } */
 /* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O0 -mx32" } */
 
 int a;
-int* __attribute__ ((ms_abi)) fn1 () { return &a; } /* { dg-error "X32 does not support ms_abi attribute" } */
+int* __attribute__ ((ms_abi)) fn1 () { return &a; } /* { dg-error "X32 does not support 'ms_abi' attribute" } */
index 5e60d17..81102fc 100644 (file)
@@ -1,6 +1,7 @@
-/* { dg-do compile { target x32 } } */
-/* { dg-options "-mabi=ms" } */
-/* { dg-error "-mabi=ms not supported with X32 ABI" "" { target *-*-* } 0 } */
+/* { dg-do compile } */
+/* { dg-require-effective-target maybe_x32 } */
+/* { dg-options "-mx32 -mabi=ms" } */
+/* { dg-error "'-mabi=ms' not supported with X32 ABI" "" { target *-*-* } 0 } */
 
 void main ()
 {
index fe29e3c..871e0ff 100644 (file)
@@ -19,6 +19,6 @@ bar (__m128 *p)
 {
   return _mm_cvtt_roundss_u64 (*p, _MM_FROUND_TO_ZERO |_MM_FROUND_NO_EXC);
   /* { dg-error "needs isa option -m64 -mavx512f" "" { target lp64 } .-1 } */
-  /* { dg-error "needs isa option -mx32 -mavx512f" "" { target x32 } .-1 } */
+  /* { dg-error "needs isa option -mx32 -mavx512f" "" { target x32 } .-2 } */
 }
 #endif