From: Jakub Jelinek Date: Wed, 1 Jan 2014 00:02:57 +0000 (+0100) Subject: target-supports.exp (check_effective_target_avx512f): Make sure the builtin isn't... X-Git-Tag: releases/gcc-4.9.0~1878 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=970c3b33985c5eb318947b6ab3d8611c66624790;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d081c9362a7..4bf248105b24 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 24b4161ae15c..25079742c519 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,9 +1,12 @@ 2014-01-01 Jakub Jelinek + * 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 9a5e024fd54f..b91515836085 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" ] }