Skip to content

Commit 591cca7

Browse files
authored
Check availability of immintrin.h in the AVX512 compatibility test
1 parent 28aa94b commit 591cca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c_check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ $binformat = bin64 if ($data =~ /BINARY_64/);
205205
$no_avx512= 0;
206206
if (($architecture eq "x86") || ($architecture eq "x86_64")) {
207207
$code = '"vbroadcastss -4 * 4(%rsi), %zmm2"';
208-
print $tmpf "int main(void){ __asm__ volatile($code); }\n";
208+
print $tmpf "#include <immintrin.h>\n\nint main(void){ __asm__ volatile($code); }\n";
209209
$args = " -march=skylake-avx512 -o $tmpf.o -x c $tmpf";
210210
my @cmd = ("$compiler_name $args >/dev/null 2>/dev/null");
211211
system(@cmd) == 0;

0 commit comments

Comments
 (0)