From: Martin Liska Date: Tue, 4 Jul 2017 07:44:18 +0000 (+0200) Subject: Add dg-require ifunc for mvc test-cases. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a1238d110b4f70634148cd0745a61e5bdbaa9e5;p=gcc.git Add dg-require ifunc for mvc test-cases. 2017-07-04 Martin Liska PR ipa/81214 * g++.dg/ext/mvc2.C: Add dg-require ifunc. * g++.dg/ext/mvc3.C: Likewise. * gcc.target/i386/mvc2.c: Likewise. * gcc.target/i386/mvc3.c: Likewise. From-SVN: r249949 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1293cb0ea68..c52ad0024ff 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2017-07-04 Martin Liska + + PR ipa/81214 + * g++.dg/ext/mvc2.C: Add dg-require ifunc. + * g++.dg/ext/mvc3.C: Likewise. + * gcc.target/i386/mvc2.c: Likewise. + * gcc.target/i386/mvc3.c: Likewise. + 2017-07-04 Jakub Jelinek * g++.dg/cpp1z/decomp1.C: Expect structured binding instead of diff --git a/gcc/testsuite/g++.dg/ext/mvc2.C b/gcc/testsuite/g++.dg/ext/mvc2.C index e7abab81d95..1b8c6f4d6e9 100644 --- a/gcc/testsuite/g++.dg/ext/mvc2.C +++ b/gcc/testsuite/g++.dg/ext/mvc2.C @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-ifunc "" } */ __attribute__((target_clones("avx","arch=slm","default"))) __attribute__((target("avx"))) diff --git a/gcc/testsuite/g++.dg/ext/mvc3.C b/gcc/testsuite/g++.dg/ext/mvc3.C index 05bebf7d4fb..d32b2c93aa0 100644 --- a/gcc/testsuite/g++.dg/ext/mvc3.C +++ b/gcc/testsuite/g++.dg/ext/mvc3.C @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-ifunc "" } */ __attribute__((target("avx"))) __attribute__((target_clones("avx","arch=slm","default"))) diff --git a/gcc/testsuite/gcc.target/i386/mvc2.c b/gcc/testsuite/gcc.target/i386/mvc2.c index 9635ec83fac..34a777c1d5e 100644 --- a/gcc/testsuite/gcc.target/i386/mvc2.c +++ b/gcc/testsuite/gcc.target/i386/mvc2.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-ifunc "" } */ __attribute__((target_clones("avx","arch=slm","arch=core-avx2"))) int foo (); diff --git a/gcc/testsuite/gcc.target/i386/mvc3.c b/gcc/testsuite/gcc.target/i386/mvc3.c index f940cdbbf55..1c7755fabbe 100644 --- a/gcc/testsuite/gcc.target/i386/mvc3.c +++ b/gcc/testsuite/gcc.target/i386/mvc3.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-ifunc "" } */ __attribute__((target_clones("avx","arch=slm","arch=core-avx2"))) int foo (); /* { dg-error "default target was not set" } */