Skip to content

Commit 9b87b64

Browse files
authored
Improve AVX512 testcase
clang 3.4 managed to accept the original test code, only to fail on the actual Skylake asm later
1 parent 0218b88 commit 9b87b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c_check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ $binformat = bin64 if ($data =~ /BINARY_64/);
203203

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

0 commit comments

Comments
 (0)