Update avx512_check

This commit is contained in:
Martin Kroeker 2022-03-16 23:05:59 +01:00 committed by GitHub
parent afba0665ad
commit 41fcfd2984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ if (($architecture eq "x86") || ($architecture eq "x86_64")) {
if ($@){ if ($@){
$no_avx512 = 0; $no_avx512 = 0;
} else { } else {
($fh,$tmpf) = tempfile( SUFFIX => '.c' , UNLINK => 0 ); ($fh,$tmpf) = tempfile( SUFFIX => '.c' , UNLINK => 1 );
$code = '"vbroadcastss -4 * 4(%rsi), %zmm2"'; $code = '"vbroadcastss -4 * 4(%rsi), %zmm2"';
print $fh "#include <immintrin.h>\n\nint main(void){ __asm__ volatile($code); }\n"; print $fh "#include <immintrin.h>\n\nint main(void){ __asm__ volatile($code); }\n";
$args = " -march=skylake-avx512 -v -c -o $tmpf.o $tmpf"; $args = " -march=skylake-avx512 -v -c -o $tmpf.o $tmpf";