target-supports.exp (check_effective_target_avx512f): Make sure the builtin isn't optimized away as unused.

* lib/target-supports.exp (check_effective_target_avx512f): Make sure
	the builtin isn't optimized away as unused.

From-SVN: r206270
This commit is contained in:
Jakub Jelinek 2014-01-01 01:02:57 +01:00 committed by Jakub Jelinek
parent 726c3546ef
commit 970c3b3398
3 changed files with 7 additions and 4 deletions

View file

@ -7,7 +7,7 @@
* cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
new_rtx into UNSIGNED_FLOAT rtxes.
Copyright (C) 2013 Free Software Foundation, Inc.
Copyright (C) 2014 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright

View file

@ -1,9 +1,12 @@
2014-01-01 Jakub Jelinek <jakub@redhat.com>
* lib/target-supports.exp (check_effective_target_avx512f): Make sure
the builtin isn't optimized away as unused.
PR rtl-optimization/59647
* g++.dg/opt/pr59647.C: New test.
Copyright (C) 2013 Free Software Foundation, Inc.
Copyright (C) 2014 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright

View file

@ -5176,9 +5176,9 @@ proc check_effective_target_avx512f { } {
return [check_no_compiler_messages avx512f object {
typedef double __m512d __attribute__ ((__vector_size__ (64)));
void _mm512_add (__m512d a)
__m512d _mm512_add (__m512d a)
{
__builtin_ia32_addpd512_mask (a, a, a, 1, 4);
return __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
}
} "-O2 -mavx512f" ]
}