diff options
Diffstat (limited to 'llvm/test/CodeGen/X86')
| -rw-r--r-- | llvm/test/CodeGen/X86/avx512-trunc-ext.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/avx512-trunc-ext.ll b/llvm/test/CodeGen/X86/avx512-trunc-ext.ll index 31db68cc582..9be981c71ce 100644 --- a/llvm/test/CodeGen/X86/avx512-trunc-ext.ll +++ b/llvm/test/CodeGen/X86/avx512-trunc-ext.ll @@ -116,7 +116,7 @@ define i8 @trunc_8i16_to_8i1(<8 x i16> %a) { ret i8 %mask } -; CHECK: sext_8i1_8i32 +; CHECK-LABEL: sext_8i1_8i32 ; CHECK: vpbroadcastq LCP{{.*}}(%rip), %zmm0 {%k1} {z} ; CHECK: ret define <8 x i32> @sext_8i1_8i32(<8 x i32> %a1, <8 x i32> %a2) nounwind { @@ -125,3 +125,11 @@ define <8 x i32> @sext_8i1_8i32(<8 x i32> %a1, <8 x i32> %a2) nounwind { %y = sext <8 x i1> %x1 to <8 x i32> ret <8 x i32> %y } + +; CHECK-LABEL: trunc_v16i32_to_v16i16 +; CHECK: vpmovdw +; CHECK: ret +define <16 x i16> @trunc_v16i32_to_v16i16(<16 x i32> %x) { + %1 = trunc <16 x i32> %x to <16 x i16> + ret <16 x i16> %1 +}
\ No newline at end of file |

