]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Silence vector ABI change warnings for x86
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 15 Jan 2014 17:08:38 +0000 (17:08 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 15 Jan 2014 17:08:38 +0000 (09:08 -0800)
PR target/59794
* c-c++-common/convert-vec-1.c: Also prune ABI change for
Linux/x86.
* g++.dg/cpp0x/constexpr-53094-2.C: Likewise.
* g++.dg/ext/attribute-test-1.C: Likewise.
* g++.dg/ext/attribute-test-2.C: Likewise.
* g++.dg/ext/attribute-test-3.C: Likewise.
* g++.dg/ext/attribute-test-4.C: Likewise.
* g++.dg/ext/pr56790-1.C: Likewise.
* g++.dg/torture/pr38565.C: Likewise.
* gcc.dg/pr53060.c: Likewise.
* c-c++-common/scal-to-vec2.c: Add -msse2 for x86.
* c-c++-common/vector-compare-2.c: Likewise.
* gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: Likewise.
* g++.dg/conversion/simd1.C: Add -msse2 for x86.  Adjust
dg-message line number.

From-SVN: r206634

14 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/convert-vec-1.c
gcc/testsuite/c-c++-common/scal-to-vec2.c
gcc/testsuite/c-c++-common/vector-compare-2.c
gcc/testsuite/g++.dg/conversion/simd1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C
gcc/testsuite/g++.dg/ext/attribute-test-1.C
gcc/testsuite/g++.dg/ext/attribute-test-2.C
gcc/testsuite/g++.dg/ext/attribute-test-3.C
gcc/testsuite/g++.dg/ext/attribute-test-4.C
gcc/testsuite/g++.dg/ext/pr56790-1.C
gcc/testsuite/g++.dg/torture/pr38565.C
gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c
gcc/testsuite/gcc.dg/pr53060.c

index ef2d21eb5434d11a6e17121356f0f04b4cc6a741..4aadd851e852e0b8c0743c804e9ab69a20e40ac3 100644 (file)
@@ -1,3 +1,22 @@
+2014-01-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/59794
+       * c-c++-common/convert-vec-1.c: Also prune ABI change for
+       Linux/x86.
+       * g++.dg/cpp0x/constexpr-53094-2.C: Likewise.
+       * g++.dg/ext/attribute-test-1.C: Likewise.
+       * g++.dg/ext/attribute-test-2.C: Likewise.
+       * g++.dg/ext/attribute-test-3.C: Likewise.
+       * g++.dg/ext/attribute-test-4.C: Likewise.
+       * g++.dg/ext/pr56790-1.C: Likewise.
+       * g++.dg/torture/pr38565.C: Likewise.
+       * gcc.dg/pr53060.c: Likewise.
+       * c-c++-common/scal-to-vec2.c: Add -msse2 for x86.
+       * c-c++-common/vector-compare-2.c: Likewise.
+       * gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: Likewise.
+       * g++.dg/conversion/simd1.C: Add -msse2 for x86.  Adjust
+       dg-message line number.
+
 2014-01-15  Matthias Klose  <doko@ubuntu.com>
 
        * go.test/go-test.exp: Set goarch for aarch64*-*-*.
index 4987298407363ea7269dc178a5ec9f12bc887f48..862190d609299507406feade8b647c24dbd93972 100644 (file)
@@ -1,3 +1,4 @@
 /* { dg-do compile } */
+/* { dg-prune-output "changes the ABI" } */
 typedef float v2sf __attribute__ ((vector_size (8)));
 v2sf sub (void) { return (v2sf) 0.0; } /* { dg-error "can't convert" } */
index 2721aa00794b16de999fb05e69ab7fb5673e3f8e..e2c93eedd6c5a068a785d2d84d87edad3f7dec4b 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */   
 /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
+/* { dg-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */
 /* Ignore warning on some powerpc-ibm-aix configurations. */
 /* { dg-prune-output "non-standard ABI extension" } */
 
index d17a1b4128487297a1ab47a76f27f649cafeb29a..5ebe9e3ca56c23ba31df43754549b92177d1818d 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */   
 /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
+/* { dg-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */
 /* Ignore warning on some powerpc-ibm-aix configurations. */
 /* { dg-prune-output "non-standard ABI extension" } */
 
index fa40b0eaad289637ce9ffd6188ba728e7f772692..522d8b5470aefa08718256039ffb98ee86058414 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */
 
 /* Test overload resolution of vector types.
    From Janis Johnson and Paolo Bonzini, based on PR/16882 */
@@ -17,7 +18,7 @@ extern const vector signed short *cvssp;
 void foo ()
 {
   vss = vld(i, vscp);        /* { dg-error "no matching function for call" } */
-  // { dg-message "candidate" "candidate note" { target *-*-* } 19 }
+  // { dg-message "candidate" "candidate note" { target *-*-* } 20 }
   vss = vld(i, vssp);
   vss = vld(i, cvssp);
 }
index 3f66c4eb74b403be1b220325f587f69ded0beb6d..1c5129dcb3fc762054cf0ba4f5821e06f94f3858 100644 (file)
@@ -2,6 +2,7 @@
 // { dg-options "-std=gnu++11" }
 // Ignore warning on some powerpc-ibm-aix configurations.
 // { dg-prune-output "non-standard ABI extension" }
+// { dg-prune-output "changes the ABI" }
 
 typedef float __attribute__ ((vector_size (4 * sizeof (float)))) V4;
 constexpr V4 build (float x, float y, float z) { return (V4){ x, y, z, 0 };}
index 7df68930fc4f6efd3253b28ab6c93cc9d056a33c..93e08d7ef897e5ecb32b0657fc4d01493cb16c6c 100644 (file)
@@ -36,3 +36,4 @@ int main()
 
 /* Ignore a warning that is irrelevant to the purpose of this test.  */
 /* { dg-prune-output ".*GCC vector returned by reference.*" } */
+/* { dg-prune-output "changes the ABI" } */
index 187067318f92cdeabb0b61dec1c58515a8d4f633..d7c417dccaac1866a7b4f62ae84a14460f6926a3 100644 (file)
@@ -50,3 +50,4 @@ int main()
 
 /* Ignore a warning that is irrelevant to the purpose of this test.  */
 /* { dg-prune-output ".*GCC vector returned by reference.*" } */
+/* { dg-prune-output "changes the ABI" } */
index 050cbb4ed39f507005a934fce2e24f3acc092ff3..4b0939ea3a2aaf8cc2f9c8f9cad481216075bcda 100644 (file)
@@ -52,3 +52,4 @@ int main() {
 
 /* Ignore a warning that is irrelevant to the purpose of this test.  */
 /* { dg-prune-output ".*GCC vector returned by reference.*" } */
+/* { dg-prune-output "changes the ABI" } */
index 4783ee8a4068d5c11d759215c4112bc8bdb734b9..c3e949a9bde54ceb0094267f6c29ff9e22c87bbc 100644 (file)
@@ -49,3 +49,4 @@ int main() {
 
 /* Ignore a warning that is irrelevant to the purpose of this test.  */
 /* { dg-prune-output ".*GCC vector returned by reference.*" } */
+/* { dg-prune-output "changes the ABI" } */
index 84feca19c7dac88d36da71db9c404ae3c58ed99b..ae465fa3e134a0669e1a8322ac86a04b5d93075d 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-ccp1" } */
+/* { dg-prune-output "changes the ABI" } */
 
 typedef long vec __attribute__ ((vector_size (2 * sizeof (long))));
 
index 8cd1e1d4b9b86dd1babfb0066650a2753f5c8bd4..7216b1c67e7c7ca28b7f51983d9bcec06ff819c2 100644 (file)
@@ -1,6 +1,7 @@
 // { dg-do compile }
 // Ignore warning on some powerpc-linux configurations.
 // { dg-prune-output "non-standard ABI extension" }
+// { dg-prune-output "changes the ABI" }
 #define vector __attribute__((vector_size(16) ))
 vector unsigned int f(int a)
 {
index 42b393580a34e49dee7b915a63012270dae6897e..b1bee33c382a69310b82d36a2b931cff73329e8f 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -Wall" } */
 /* { dg-options "-O2 -Wall -mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
+/* { dg-options "-O2 -Wall -msse2" { target { i?86-*-* x86_64-*-* } } } */
 
 typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));
 
index db5acbdb6ea24f7faeccf836a14989756ffa6da6..503f05407742eff5bc7dad4852c23329ff1db095 100644 (file)
@@ -25,3 +25,4 @@ int main()
 
 /* Ignore a warning that is irrelevant to the purpose of this test.  */
 /* { dg-prune-output ".*GCC vector returned by reference.*" } */
+/* { dg-prune-output "changes the ABI" } */