public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] testsuite: Add -msse2 to fix ia32 tests.
@ 2020-02-19 19:42 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2020-02-19 19:42 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

testsuite: Add -msse2 to fix ia32 tests.

Tested on x86_64-linux-gnu {,-m32}.

2020-02-19  Uroš Bizjak  <ubizjak@gmail.com>

    * gcc.dg/gimplefe-41.c: Add -msse2 additional options for x86 targets.
    * gcc.dg/ipa/ipa-sra-19.c: Ditto.

Uros.

[-- Attachment #2: t.diff.txt --]
[-- Type: text/plain, Size: 959 bytes --]

diff --git a/gcc/testsuite/gcc.dg/gimplefe-41.c b/gcc/testsuite/gcc.dg/gimplefe-41.c
index c3e2f0ecef8..e52a3a559a9 100644
--- a/gcc/testsuite/gcc.dg/gimplefe-41.c
+++ b/gcc/testsuite/gcc.dg/gimplefe-41.c
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { vect_double && vect_long_long } } } */
 /* { dg-options "-fgimple -Wno-psabi -w" } */
+/* { dg-additional-options "-msse2" { target x86_64-*-* i?86-*-* } } */
 
 typedef double __v2df __attribute__ ((__vector_size__ (16)));
 typedef unsigned long long __v2di __attribute__ ((__vector_size__ (16)));
diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c b/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c
index 6186d891a29..681a303523a 100644
--- a/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c
+++ b/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2"  } */
+/* { dg-additional-options "-msse2" { target ia32 } } */
 
 typedef int __attribute__((__vector_size__(16))) vectype;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-19 19:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-19 19:42 [committed] testsuite: Add -msse2 to fix ia32 tests Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).