diff mbox series

[committed] testsuite: Add -msse2 to fix ia32 tests.

Message ID CAFULd4ZeDtikR8UVtegVH-q=vw9-ZgHrCWd3YX13yO_kPkNbSw@mail.gmail.com
State New
Headers show
Series [committed] testsuite: Add -msse2 to fix ia32 tests. | expand

Commit Message

Uros Bizjak Feb. 19, 2020, 7:42 p.m. UTC
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.
diff mbox series

Patch

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;