This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: avx runtime check
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Mike Stump <mikestump at comcast dot net>,Uros Bizjak <ubizjak at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 16 May 2014 08:52:46 +0200
- Subject: Re: avx runtime check
- Authentication-results: sourceware.org; auth=none
- References: <42629FC8-9372-410B-B9C0-7C6341B3D812 at comcast dot net>
On May 16, 2014 4:47:11 AM CEST, Mike Stump <mikestump@comcast.net> wrote:
>This reorders the avx checks and gates on a target triplet check before
>compiling any code.
Can you explain why?
>Ok?
>
>diff --git a/gcc/testsuite/lib/target-supports.exp
>b/gcc/testsuite/lib/target-supports.exp
>index 40b5414..103a28a 100644
>--- a/gcc/testsuite/lib/target-supports.exp
>+++ b/gcc/testsuite/lib/target-supports.exp
>@@ -1353,8 +1353,8 @@ proc check_effective_target_sse2_runtime { } {
># Return 1 if the target supports running AVX executables, 0 otherwise.
>
> proc check_effective_target_avx_runtime { } {
>- if { [check_effective_target_avx]
>- && [check_avx_hw_available]
>+ if { [check_avx_hw_available]
>+ && [check_effective_target_avx]
> && [check_avx_os_support_available] } {
> return 1
> }