This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed][gcc][patch] Require sse for testcase on i686.


Hi All,

This fixes an ABI warning generated on i686-pc-linux-gnu when using
`vector_size` with no sse enabled explicitly.

Regtested single test on x86_64-pc-linux-gnu with -m32 and no issues.

Committed under the GCC obvious rule.

Thanks,
Tamar

gcc/testsuite/
2018-07-06  Tamar Christina  <tamar.christina@arm.com>

	PR target/84711
	* gcc.dg/vect/pr84711.c: Add -msse for i686 targets.

-- 
diff --git a/gcc/testsuite/gcc.dg/vect/pr84711.c b/gcc/testsuite/gcc.dg/vect/pr84711.c
index dbe61bef0dc35cdbcacf7a9217951888b64a99f1..87763aaabed22a043680223b466b3f43ca70744e 100644
--- a/gcc/testsuite/gcc.dg/vect/pr84711.c
+++ b/gcc/testsuite/gcc.dg/vect/pr84711.c
@@ -1,6 +1,8 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_int } */
+/* { dg-require-effective-target sse { target i386*-*-* } } */
 /* { dg-options "-O2" } */
+/* { dg-additional-options "-msse" { target i386*-*-* } } */
 
 typedef int v4si
   __attribute__ ((vector_size (16)));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]