[PATCH] D38714: [AVX512] Don't mark EXTLOAD as legal with AVX512. Continue using custom lowering.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 14 23:11:39 PDT 2017


craig.topper added inline comments.


================
Comment at: test/CodeGen/X86/avx512-shuffles/broadcast-vector-int.ll:345
 ; CHECK-NEXT:    kmovw %eax, %k1
-; CHECK-NEXT:    vpshufd {{.*#+}} xmm0 {%k1} {z} = xmm0[0,2,0,2]
+; CHECK-NEXT:    vbroadcasti32x2 (%rdi), %xmm0 {%k1} {z}
 ; CHECK-NEXT:    retq
----------------
delena wrote:
> load {a0, a1}
> %shuf = { a0, a1, a0, a1}
> %res = { a0, 0, 0, 0, 0}
> - can we do the same with one "vmovd" instruction ?
This test is trying to test broadcasts, the fact the test was using a constant mask is a test problem which I've fixed in r315848


https://reviews.llvm.org/D38714





More information about the llvm-commits mailing list