mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[X86][AVX512] Add simple tests for all AVX512 shuffle instructions.
Throughout an effort to strongly check the behavior of CodeGen with the IR shufflevector instruction we generated many tests while predicting the best X86 sequence that may be generated. This is a subset of the generated tests that we think may add value to our X86 set of tests. Some of the checks are not optimal and will be changed after fixing: 1. PR34394 2. PR34382 3. PR34380 4. PR34359 Differential Revision: https://reviews.llvm.org/D37329 llvm-svn: 312442
This commit is contained in:
parent
32ec9522a8
commit
a7e00e3b83
1158
test/CodeGen/X86/avx512-shuffles/broadcast-scalar-fp.ll
Normal file
1158
test/CodeGen/X86/avx512-shuffles/broadcast-scalar-fp.ll
Normal file
File diff suppressed because it is too large
Load Diff
2623
test/CodeGen/X86/avx512-shuffles/broadcast-scalar-int.ll
Normal file
2623
test/CodeGen/X86/avx512-shuffles/broadcast-scalar-int.ll
Normal file
File diff suppressed because it is too large
Load Diff
1101
test/CodeGen/X86/avx512-shuffles/broadcast-vector-fp.ll
Normal file
1101
test/CodeGen/X86/avx512-shuffles/broadcast-vector-fp.ll
Normal file
File diff suppressed because it is too large
Load Diff
1343
test/CodeGen/X86/avx512-shuffles/broadcast-vector-int.ll
Normal file
1343
test/CodeGen/X86/avx512-shuffles/broadcast-vector-int.ll
Normal file
File diff suppressed because it is too large
Load Diff
789
test/CodeGen/X86/avx512-shuffles/duplicate-high.ll
Normal file
789
test/CodeGen/X86/avx512-shuffles/duplicate-high.ll
Normal file
@ -0,0 +1,789 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc -mcpu=skx %s -o - | FileCheck %s
|
||||
|
||||
define <4 x float> @test_4xfloat_dup_high(<4 x float> %vec) {
|
||||
; CHECK-LABEL: test_4xfloat_dup_high:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%res = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mask0(<4 x float> %vec, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $8, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm1 {%k1} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: vmovaps %xmm1, %xmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 0, i1 0, i1 1>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mask0(<4 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $8, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 0, i1 0, i1 1>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mask1(<4 x float> %vec, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $13, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm1 {%k1} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: vmovaps %xmm1, %xmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 0, i1 1, i1 1>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mask1(<4 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $13, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 0, i1 1, i1 1>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mask2(<4 x float> %vec, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $2, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm1 {%k1} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: vmovaps %xmm1, %xmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 1, i1 0, i1 0>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mask2(<4 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $2, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 1, i1 0, i1 0>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mask3(<4 x float> %vec, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $7, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm1 {%k1} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: vmovaps %xmm1, %xmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 1, i1 1, i1 0>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mask3(<4 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $7, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 1, i1 1, i1 0>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mask4(<4 x float> %vec, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $14, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm1 {%k1} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: vmovaps %xmm1, %xmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 1, i1 1, i1 1>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mask4(<4 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $14, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = xmm0[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 1, i1 1, i1 1>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_4xfloat_dup_high_mem(<4 x float>* %vp) {
|
||||
; CHECK-LABEL: test_4xfloat_dup_high_mem:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%res = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mem_mask0(<4 x float>* %vp, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mem_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $8, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 0, i1 0, i1 1>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mem_mask0(<4 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mem_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $8, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 0, i1 0, i1 1>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mem_mask1(<4 x float>* %vp, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mem_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $11, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 1, i1 0, i1 1>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mem_mask1(<4 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mem_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $11, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 1, i1 0, i1 1>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mem_mask2(<4 x float>* %vp, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mem_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $7, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 1, i1 1, i1 0>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mem_mask2(<4 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mem_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $7, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 1, i1 1, i1 0>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mem_mask3(<4 x float>* %vp, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mem_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $13, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 0, i1 1, i1 1>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mem_mask3(<4 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mem_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $13, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 1, i1 0, i1 1, i1 1>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <4 x float> @test_masked_4xfloat_dup_high_mem_mask4(<4 x float>* %vp, <4 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_4xfloat_dup_high_mem_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $12, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 0, i1 1, i1 1>, <4 x float> %shuf, <4 x float> %vec2
|
||||
ret <4 x float> %res
|
||||
}
|
||||
|
||||
define <4 x float> @test_masked_z_4xfloat_dup_high_mem_mask4(<4 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_4xfloat_dup_high_mem_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $12, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} xmm0 {%k1} {z} = mem[1,1,3,3]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <4 x float>, <4 x float>* %vp
|
||||
%shuf = shufflevector <4 x float> %vec, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 3, i32 3>
|
||||
%res = select <4 x i1> <i1 0, i1 0, i1 1, i1 1>, <4 x float> %shuf, <4 x float> zeroinitializer
|
||||
ret <4 x float> %res
|
||||
}
|
||||
define <8 x float> @test_8xfloat_dup_high(<8 x float> %vec) {
|
||||
; CHECK-LABEL: test_8xfloat_dup_high:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%res = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mask0(<8 x float> %vec, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-106, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm1 {%k1} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: vmovaps %ymm1, %ymm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 1, i1 1, i1 0, i1 1, i1 0, i1 0, i1 1>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mask0(<8 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-106, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 1, i1 1, i1 0, i1 1, i1 0, i1 0, i1 1>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mask1(<8 x float> %vec, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $114, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm1 {%k1} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: vmovaps %ymm1, %ymm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 1, i1 0, i1 0, i1 1, i1 1, i1 1, i1 0>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mask1(<8 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $114, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 1, i1 0, i1 0, i1 1, i1 1, i1 1, i1 0>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mask2(<8 x float> %vec, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-104, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm1 {%k1} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: vmovaps %ymm1, %ymm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0, i1 1>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mask2(<8 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-104, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0, i1 1>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mask3(<8 x float> %vec, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $98, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm1 {%k1} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: vmovaps %ymm1, %ymm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mask3(<8 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $98, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mask4(<8 x float> %vec, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-109, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm1 {%k1} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: vmovaps %ymm1, %ymm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 1, i1 1, i1 0, i1 0, i1 1, i1 0, i1 0, i1 1>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mask4(<8 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-109, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = ymm0[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 1, i1 1, i1 0, i1 0, i1 1, i1 0, i1 0, i1 1>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_8xfloat_dup_high_mem(<8 x float>* %vp) {
|
||||
; CHECK-LABEL: test_8xfloat_dup_high_mem:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%res = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mem_mask0(<8 x float>* %vp, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mem_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $74, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 1, i1 0, i1 1, i1 0, i1 0, i1 1, i1 0>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mem_mask0(<8 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mem_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $74, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 1, i1 0, i1 1, i1 0, i1 0, i1 1, i1 0>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mem_mask1(<8 x float>* %vp, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mem_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $49, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mem_mask1(<8 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mem_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $49, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mem_mask2(<8 x float>* %vp, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mem_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $48, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mem_mask2(<8 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mem_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $48, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mem_mask3(<8 x float>* %vp, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mem_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-100, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 0, i1 1, i1 1, i1 1, i1 0, i1 0, i1 1>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mem_mask3(<8 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mem_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-100, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 0, i1 0, i1 1, i1 1, i1 1, i1 0, i1 0, i1 1>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <8 x float> @test_masked_8xfloat_dup_high_mem_mask4(<8 x float>* %vp, <8 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_8xfloat_dup_high_mem_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-89, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 1, i1 1, i1 1, i1 0, i1 0, i1 1, i1 0, i1 1>, <8 x float> %shuf, <8 x float> %vec2
|
||||
ret <8 x float> %res
|
||||
}
|
||||
|
||||
define <8 x float> @test_masked_z_8xfloat_dup_high_mem_mask4(<8 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_8xfloat_dup_high_mem_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movb $-89, %al
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} ymm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <8 x float>, <8 x float>* %vp
|
||||
%shuf = shufflevector <8 x float> %vec, <8 x float> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7>
|
||||
%res = select <8 x i1> <i1 1, i1 1, i1 1, i1 0, i1 0, i1 1, i1 0, i1 1>, <8 x float> %shuf, <8 x float> zeroinitializer
|
||||
ret <8 x float> %res
|
||||
}
|
||||
define <16 x float> @test_16xfloat_dup_high(<16 x float> %vec) {
|
||||
; CHECK-LABEL: test_16xfloat_dup_high:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%res = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mask0(<16 x float> %vec, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $31229, %ax # imm = 0x79FD
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm1 {%k1} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: vmovaps %zmm1, %zmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 0, i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 0, i1 0, i1 1, i1 1, i1 1, i1 1, i1 0>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mask0(<16 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $31229, %ax # imm = 0x79FD
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 0, i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 0, i1 0, i1 1, i1 1, i1 1, i1 1, i1 0>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mask1(<16 x float> %vec, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $5887, %ax # imm = 0x16FF
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm1 {%k1} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: vmovaps %zmm1, %zmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 0, i1 1, i1 1, i1 0, i1 1, i1 0, i1 0, i1 0>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mask1(<16 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $5887, %ax # imm = 0x16FF
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 1, i1 0, i1 1, i1 1, i1 0, i1 1, i1 0, i1 0, i1 0>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mask2(<16 x float> %vec, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-15887, %ax # imm = 0xC1F1
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm1 {%k1} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: vmovaps %zmm1, %zmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 1, i1 1, i1 1, i1 0, i1 0, i1 0, i1 0, i1 0, i1 1, i1 1>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mask2(<16 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-15887, %ax # imm = 0xC1F1
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 1, i1 1, i1 1, i1 0, i1 0, i1 0, i1 0, i1 0, i1 1, i1 1>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mask3(<16 x float> %vec, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-8077, %ax # imm = 0xE073
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm1 {%k1} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: vmovaps %zmm1, %zmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 1, i1 0, i1 0, i1 1, i1 1, i1 1, i1 0, i1 0, i1 0, i1 0, i1 0, i1 0, i1 1, i1 1, i1 1>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mask3(<16 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-8077, %ax # imm = 0xE073
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 1, i1 0, i1 0, i1 1, i1 1, i1 1, i1 0, i1 0, i1 0, i1 0, i1 0, i1 0, i1 1, i1 1, i1 1>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mask4(<16 x float> %vec, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-5023, %ax # imm = 0xEC61
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm1 {%k1} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: vmovaps %zmm1, %zmm0
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 0, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 1, i1 1, i1 1>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mask4(<16 x float> %vec) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-5023, %ax # imm = 0xEC61
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = zmm0[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 0, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 1, i1 1, i1 1>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_16xfloat_dup_high_mem(<16 x float>* %vp) {
|
||||
; CHECK-LABEL: test_16xfloat_dup_high_mem:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%res = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mem_mask0(<16 x float>* %vp, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mem_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-10326, %ax # imm = 0xD7AA
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 0, i1 1, i1 0, i1 1, i1 0, i1 1, i1 0, i1 1, i1 1, i1 1, i1 1, i1 0, i1 1, i1 0, i1 1, i1 1>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mem_mask0(<16 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mem_mask0:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-10326, %ax # imm = 0xD7AA
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 0, i1 1, i1 0, i1 1, i1 0, i1 1, i1 0, i1 1, i1 1, i1 1, i1 1, i1 0, i1 1, i1 0, i1 1, i1 1>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mem_mask1(<16 x float>* %vp, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mem_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-6675, %ax # imm = 0xE5ED
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 0, i1 1, i1 1, i1 0, i1 1, i1 1, i1 1, i1 1, i1 0, i1 1, i1 0, i1 0, i1 1, i1 1, i1 1>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mem_mask1(<16 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mem_mask1:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-6675, %ax # imm = 0xE5ED
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 1, i1 0, i1 1, i1 1, i1 0, i1 1, i1 1, i1 1, i1 1, i1 0, i1 1, i1 0, i1 0, i1 1, i1 1, i1 1>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mem_mask2(<16 x float>* %vp, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mem_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-5042, %ax # imm = 0xEC4E
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 0, i1 1, i1 1, i1 1, i1 0, i1 0, i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 1, i1 1, i1 1>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mem_mask2(<16 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mem_mask2:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-5042, %ax # imm = 0xEC4E
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 0, i1 1, i1 1, i1 1, i1 0, i1 0, i1 1, i1 0, i1 0, i1 0, i1 1, i1 1, i1 0, i1 1, i1 1, i1 1>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mem_mask3(<16 x float>* %vp, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mem_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-30108, %ax # imm = 0x8A64
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 0, i1 0, i1 1, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0, i1 1, i1 0, i1 1, i1 0, i1 0, i1 0, i1 1>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mem_mask3(<16 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mem_mask3:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $-30108, %ax # imm = 0x8A64
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 0, i1 0, i1 1, i1 0, i1 0, i1 1, i1 1, i1 0, i1 0, i1 1, i1 0, i1 1, i1 0, i1 0, i1 0, i1 1>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
||||
define <16 x float> @test_masked_16xfloat_dup_high_mem_mask4(<16 x float>* %vp, <16 x float> %vec2) {
|
||||
; CHECK-LABEL: test_masked_16xfloat_dup_high_mem_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $25644, %ax # imm = 0x642C
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 0, i1 0, i1 1, i1 1, i1 0, i1 1, i1 0, i1 0, i1 0, i1 0, i1 1, i1 0, i1 0, i1 1, i1 1, i1 0>, <16 x float> %shuf, <16 x float> %vec2
|
||||
ret <16 x float> %res
|
||||
}
|
||||
|
||||
define <16 x float> @test_masked_z_16xfloat_dup_high_mem_mask4(<16 x float>* %vp) {
|
||||
; CHECK-LABEL: test_masked_z_16xfloat_dup_high_mem_mask4:
|
||||
; CHECK: # BB#0:
|
||||
; CHECK-NEXT: movw $25644, %ax # imm = 0x642C
|
||||
; CHECK-NEXT: kmovd %eax, %k1
|
||||
; CHECK-NEXT: vmovshdup {{.*#+}} zmm0 {%k1} {z} = mem[1,1,3,3,5,5,7,7,9,9,11,11,13,13,15,15]
|
||||
; CHECK-NEXT: retq
|
||||
%vec = load <16 x float>, <16 x float>* %vp
|
||||
%shuf = shufflevector <16 x float> %vec, <16 x float> undef, <16 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7, i32 9, i32 9, i32 11, i32 11, i32 13, i32 13, i32 15, i32 15>
|
||||
%res = select <16 x i1> <i1 0, i1 0, i1 1, i1 1, i1 0, i1 1, i1 0, i1 0, i1 0, i1 0, i1 1, i1 0, i1 0, i1 1, i1 1, i1 0>, <16 x float> %shuf, <16 x float> zeroinitializer
|
||||
ret <16 x float> %res
|
||||
}
|
1428
test/CodeGen/X86/avx512-shuffles/duplicate-low.ll
Normal file
1428
test/CodeGen/X86/avx512-shuffles/duplicate-low.ll
Normal file
File diff suppressed because it is too large
Load Diff
1756
test/CodeGen/X86/avx512-shuffles/in_lane_permute.ll
Normal file
1756
test/CodeGen/X86/avx512-shuffles/in_lane_permute.ll
Normal file
File diff suppressed because it is too large
Load Diff
4556
test/CodeGen/X86/avx512-shuffles/partial_permute.ll
Normal file
4556
test/CodeGen/X86/avx512-shuffles/partial_permute.ll
Normal file
File diff suppressed because it is too large
Load Diff
2937
test/CodeGen/X86/avx512-shuffles/permute.ll
Normal file
2937
test/CodeGen/X86/avx512-shuffles/permute.ll
Normal file
File diff suppressed because it is too large
Load Diff
1312
test/CodeGen/X86/avx512-shuffles/shuffle-interleave.ll
Normal file
1312
test/CodeGen/X86/avx512-shuffles/shuffle-interleave.ll
Normal file
File diff suppressed because it is too large
Load Diff
1941
test/CodeGen/X86/avx512-shuffles/shuffle-vec.ll
Normal file
1941
test/CodeGen/X86/avx512-shuffles/shuffle-vec.ll
Normal file
File diff suppressed because it is too large
Load Diff
2792
test/CodeGen/X86/avx512-shuffles/shuffle.ll
Normal file
2792
test/CodeGen/X86/avx512-shuffles/shuffle.ll
Normal file
File diff suppressed because it is too large
Load Diff
2621
test/CodeGen/X86/avx512-shuffles/unpack.ll
Normal file
2621
test/CodeGen/X86/avx512-shuffles/unpack.ll
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user