diff mbox

[x86] Add march/mtune=knl

Message ID 54C37689.1020601@mentor.com
State New
Headers show

Commit Message

Tom de Vries Jan. 24, 2015, 10:40 a.m. UTC
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

Comments

Uros Bizjak Jan. 24, 2015, 10:48 a.m. UTC | #1
On Sat, Jan 24, 2015 at 11:40 AM, Tom de Vries <Tom_deVries@mentor.com> wrote:
> 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?

OK.

Thanks,
Uros.
diff mbox

Patch

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