diff options
Diffstat (limited to 'test/CodeGen/X86/avx-zext.ll')
-rwxr-xr-x | test/CodeGen/X86/avx-zext.ll | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/test/CodeGen/X86/avx-zext.ll b/test/CodeGen/X86/avx-zext.ll index 582537ea906f7..75117463bc39f 100755 --- a/test/CodeGen/X86/avx-zext.ll +++ b/test/CodeGen/X86/avx-zext.ll @@ -1,7 +1,7 @@ ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s define <8 x i32> @zext_8i16_to_8i32(<8 x i16> %A) nounwind uwtable readnone ssp { -;CHECK: zext_8i16_to_8i32 +;CHECK-LABEL: zext_8i16_to_8i32: ;CHECK: vpunpckhwd ;CHECK: ret @@ -10,7 +10,7 @@ define <8 x i32> @zext_8i16_to_8i32(<8 x i16> %A) nounwind uwtable readnone ssp } define <4 x i64> @zext_4i32_to_4i64(<4 x i32> %A) nounwind uwtable readnone ssp { -;CHECK: zext_4i32_to_4i64 +;CHECK-LABEL: zext_4i32_to_4i64: ;CHECK: vpunpckhdq ;CHECK: ret @@ -19,7 +19,7 @@ define <4 x i64> @zext_4i32_to_4i64(<4 x i32> %A) nounwind uwtable readnone ssp } define <8 x i32> @zext_8i8_to_8i32(<8 x i8> %z) { -;CHECK: zext_8i8_to_8i32 +;CHECK-LABEL: zext_8i8_to_8i32: ;CHECK: vpunpckhwd ;CHECK: vpmovzxwd ;CHECK: vinsertf128 @@ -27,3 +27,15 @@ define <8 x i32> @zext_8i8_to_8i32(<8 x i8> %z) { %t = zext <8 x i8> %z to <8 x i32> ret <8 x i32> %t } + +; PR17654 +define <16 x i16> @zext_16i8_to_16i16(<16 x i8> %z) { +; CHECK-LABEL: zext_16i8_to_16i16: +; CHECK: vpxor +; CHECK: vpunpckhbw +; CHECK: vpunpcklbw +; CHECK: vinsertf128 +; CHECK: ret + %t = zext <16 x i8> %z to <16 x i16> + ret <16 x i16> %t +} |