diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-01-01 01:02:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-01-01 01:02:57 +0100 |
commit | 970c3b33985c5eb318947b6ab3d8611c66624790 (patch) | |
tree | 04f101bbe5eda6769b907e518a46e3a5e84a98bf /gcc | |
parent | 726c3546ef93df71ec61944655f792779eed53d1 (diff) | |
download | gcc-970c3b33985c5eb318947b6ab3d8611c66624790.zip gcc-970c3b33985c5eb318947b6ab3d8611c66624790.tar.gz gcc-970c3b33985c5eb318947b6ab3d8611c66624790.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 4 |
3 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d081c9..4bf2481 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 24b4161..2507974 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 9a5e024..b915158 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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" ] } |