This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
avx runtime check
- From: Mike Stump <mikestump at comcast dot net>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 15 May 2014 19:47:11 -0700
- Subject: avx runtime check
- Authentication-results: sourceware.org; auth=none
This reorders the avx checks and gates on a target triplet check before compiling any code.
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
}