diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-11 21:31:27 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-11 21:31:27 +0000 |
commit | 87862e77bbf90cf1b68c9eea1f3641ad81435e38 (patch) | |
tree | daf3f31f6a1a8732160f7fd891a085a53a783f6f /test/CodeGen/X86/vec_ext_inreg.ll | |
parent | c8f9e4fdc584c6bf48dc0f42083d05b707024b20 (diff) | |
download | llvm-87862e77bbf90cf1b68c9eea1f3641ad81435e38.tar.gz llvm-87862e77bbf90cf1b68c9eea1f3641ad81435e38.tar.bz2 llvm-87862e77bbf90cf1b68c9eea1f3641ad81435e38.tar.xz |
Implement vector widening, splitting, and scalarizing for SIGN_EXTEND_INREG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_ext_inreg.ll')
-rw-r--r-- | test/CodeGen/X86/vec_ext_inreg.ll | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_ext_inreg.ll b/test/CodeGen/X86/vec_ext_inreg.ll new file mode 100644 index 0000000000..02b16a79f4 --- /dev/null +++ b/test/CodeGen/X86/vec_ext_inreg.ll @@ -0,0 +1,37 @@ +; RUN: llc < %s -march=x86-64 + +define <8 x i32> @a(<8 x i32> %a) nounwind { + %b = trunc <8 x i32> %a to <8 x i16> + %c = sext <8 x i16> %b to <8 x i32> + ret <8 x i32> %c +} + +define <3 x i32> @b(<3 x i32> %a) nounwind { + %b = trunc <3 x i32> %a to <3 x i16> + %c = sext <3 x i16> %b to <3 x i32> + ret <3 x i32> %c +} + +define <1 x i32> @c(<1 x i32> %a) nounwind { + %b = trunc <1 x i32> %a to <1 x i16> + %c = sext <1 x i16> %b to <1 x i32> + ret <1 x i32> %c +} + +define <8 x i32> @d(<8 x i32> %a) nounwind { + %b = trunc <8 x i32> %a to <8 x i16> + %c = zext <8 x i16> %b to <8 x i32> + ret <8 x i32> %c +} + +define <3 x i32> @e(<3 x i32> %a) nounwind { + %b = trunc <3 x i32> %a to <3 x i16> + %c = zext <3 x i16> %b to <3 x i32> + ret <3 x i32> %c +} + +define <1 x i32> @f(<1 x i32> %a) nounwind { + %b = trunc <1 x i32> %a to <1 x i16> + %c = zext <1 x i16> %b to <1 x i32> + ret <1 x i32> %c +} |