Browse Source

Improve AVX512 testcase

clang 3.4 managed to accept the original test code, only to fail on the actual Skylake asm later
tags/v0.3.1
Martin Kroeker GitHub 7 years ago
parent
commit
9b87b64262
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      c_check

+ 2
- 2
c_check View File

@@ -203,8 +203,8 @@ $binformat = bin64 if ($data =~ /BINARY_64/);


$no_avx512= 0; $no_avx512= 0;
if (($architecture eq "x86") || ($architecture eq "x86_64")) { if (($architecture eq "x86") || ($architecture eq "x86_64")) {
$code = '"vaddps %zmm1, %zmm0, %zmm0"';
print $tmpf "void main(void){ __asm__ volatile($code); }\n";
$code = '"vbroadcastss -4 * 4(%rsi), %zmm2"';
print $tmpf "int main(void){ __asm__ volatile($code); }\n";
$args = " -o $tmpf.o -x c $tmpf"; $args = " -o $tmpf.o -x c $tmpf";
my @cmd = ("$compiler_name $args"); my @cmd = ("$compiler_name $args");
system(@cmd) == 0; system(@cmd) == 0;


Loading…
Cancel
Save