3 ms·
Using gcc-9.2 with the usual AVX-512 flags, I get xor512d: vmovdqu8 zmm1, ZMMWORD PTR [rsi] vpxorq zmm0, zmm1, ZMMWORD PTR
by balnaphone 7y ago
Using gcc-9.2 with the usual AVX-512 flags, I get
xor512d:
vmovdqu8 zmm1, ZMMWORD PTR [rsi]
vpxorq zmm0, zmm1, ZMMWORD PTR [rdi]
vmovdqu8 ZMMWORD PTR [rdi], zmm0
vzeroupper
ret
which is very close to the reported Clang-generated code.
Flags used: -O3 -mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl -mavx512ifma -mavx512vbmi
- balnaphone 7y agoBy the way, godbolt.org is great for testing this kind of stuff. Here is a link to verify my claim: https://godbolt.org/z/u68_9m https://godbolt.org/z/u68_9m .