This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH x86] Add march/mtune=knl
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>, Ilya Tocar <tocarip dot intel at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 24 Jan 2015 11:40:09 +0100
- Subject: Re: [PATCH x86] Add march/mtune=knl
- Authentication-results: sourceware.org; auth=none
- References: <20141210162047 dot GA128205 at msticlxl7 dot ims dot intel dot com> <CAFULd4YUcmmkDJ2UxmYPwUQ=AOq9CNQ833b7YLjo+KfPxVw_8w at mail dot gmail dot com>
On 10-12-14 17:35, Uros Bizjak wrote:
On Wed, Dec 10, 2014 at 5:20 PM, Ilya Tocar <tocarip.intel@gmail.com> wrote:
gcc/testsuite/
* gcc.target/i386/funcspec-5.c: Test avx512f and knl.
--- a/gcc/testsuite/gcc.target/i386/funcspec-5.c
+++ b/gcc/testsuite/gcc.target/i386/funcspec-5.c
+extern void test_avx512 (void) __attribute__((__target__("avx512")));
+extern void test_no_avx512 (void) __attribute__((__target__("no-avx512")));
funcspec-5.c is currently failing (mentioned in PR64342) with:
...
Excess errors:
src/gcc/testsuite/gcc.target/i386/funcspec-5.c:27:1: error:
attribute(target("avx512")) is unknown
src/gcc/testsuite/gcc.target/i386/funcspec-5.c:50:1: error:
attribute(target("no-avx512")) is unknown
...
Given the used of avx512f in the ChangeLog entry, I assume avx512f was meant in
the attributes instead of avx512?
Attached patch ok for stage4 trunk?
Thanks,
- Tom
2015-01-24 Tom de Vries <tom@codesourcery.com>
* gcc.target/i386/funcspec-5.c: Replace avx512 with avx512f.
---
gcc/testsuite/gcc.target/i386/funcspec-5.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/i386/funcspec-5.c b/gcc/testsuite/gcc.target/i386/funcspec-5.c
index 269e610..d796484 100644
--- a/gcc/testsuite/gcc.target/i386/funcspec-5.c
+++ b/gcc/testsuite/gcc.target/i386/funcspec-5.c
@@ -24,7 +24,7 @@ extern void test_ssse3 (void) __attribute__((__target__("ssse3")));
extern void test_tbm (void) __attribute__((__target__("tbm")));
extern void test_avx (void) __attribute__((__target__("avx")));
extern void test_avx2 (void) __attribute__((__target__("avx2")));
-extern void test_avx512 (void) __attribute__((__target__("avx512")));
+extern void test_avx512f (void) __attribute__((__target__("avx512f")));
extern void test_no_abm (void) __attribute__((__target__("no-abm")));
extern void test_no_aes (void) __attribute__((__target__("no-aes")));
@@ -47,7 +47,7 @@ extern void test_no_ssse3 (void) __attribute__((__target__("no-ssse3")));
extern void test_no_tbm (void) __attribute__((__target__("no-tbm")));
extern void test_no_avx (void) __attribute__((__target__("no-avx")));
extern void test_no_avx2 (void) __attribute__((__target__("no-avx2")));
-extern void test_no_avx512 (void) __attribute__((__target__("no-avx512")));
+extern void test_no_avx512f (void) __attribute__((__target__("no-avx512f")));
extern void test_arch_i386 (void) __attribute__((__target__("arch=i386")));
extern void test_arch_i486 (void) __attribute__((__target__("arch=i486")));
--
1.9.1