]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target-supports.exp (check_effective_target_avx512f): Make sure the builtin isn't...
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Jan 2014 00:02:57 +0000 (01:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 1 Jan 2014 00:02:57 +0000 (01:02 +0100)
* lib/target-supports.exp (check_effective_target_avx512f): Make sure
the builtin isn't optimized away as unused.

From-SVN: r206270

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 0d081c9362a7cc4a509027391c9f13ebd0696a4e..4bf248105b248e777cad347789ca9fbae45ec353 100644 (file)
@@ -7,7 +7,7 @@
        * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
        new_rtx into UNSIGNED_FLOAT rtxes.
 \f
-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
index 24b4161ae15c8dd07ddacfe5a2d398acd0633f10..25079742c519ac4fe4c57c8599ab32ac0afbe12c 100644 (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.
 \f
-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
index 9a5e024fd54f9850e6850de7821e072485cebc13..b91515836085f7022078c7a9bc89e29ac20349c2 100644 (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" ]
 }