diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-20 07:15:58 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-20 07:15:58 +0000 |
commit | 4720611025276f01b158a1522620391332ffdc32 (patch) | |
tree | 8d827d8d38db46dc78dc2969ef8942405367fb6c /test/CodeGen/X86/promote-trunc.ll | |
parent | 289a27946fc11ae6b5a9aa517639d94efa4d91d9 (diff) | |
download | external_llvm-4720611025276f01b158a1522620391332ffdc32.zip external_llvm-4720611025276f01b158a1522620391332ffdc32.tar.gz external_llvm-4720611025276f01b158a1522620391332ffdc32.tar.bz2 |
Fix PromoteIntRes_TRUNCATE: Add support for cases where the
source vector type is to be split while the target vector is to be promoted.
(eg: <4 x i64> -> <4 x i8> )
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/promote-trunc.ll')
-rw-r--r-- | test/CodeGen/X86/promote-trunc.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/promote-trunc.ll b/test/CodeGen/X86/promote-trunc.ll new file mode 100644 index 0000000..4211d82 --- /dev/null +++ b/test/CodeGen/X86/promote-trunc.ll @@ -0,0 +1,11 @@ +; RUN: llc -promote-elements < %s -march=x86-64 + +define<4 x i8> @func_8_64() { + %F = load <4 x i64>* undef + %G = trunc <4 x i64> %F to <4 x i8> + %H = load <4 x i64>* undef + %Y = trunc <4 x i64> %H to <4 x i8> + %T = add <4 x i8> %Y, %G + ret <4 x i8> %T +} + |