diff options
author | Nate Begeman <natebegeman@mac.com> | 2008-02-13 06:48:40 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2008-02-13 06:48:40 +0000 |
commit | f76fa4fd440993ba028764e6da9055e59fcc03d2 (patch) | |
tree | 73603ffcf22da968aa67c81557e6c1f55ed25291 /test/CodeGen/PowerPC/vec_insert.ll | |
parent | 6fb7ebd546a28b2f8b941cf79d769304e5875b6a (diff) | |
download | external_llvm-f76fa4fd440993ba028764e6da9055e59fcc03d2.zip external_llvm-f76fa4fd440993ba028764e6da9055e59fcc03d2.tar.gz external_llvm-f76fa4fd440993ba028764e6da9055e59fcc03d2.tar.bz2 |
Add testcase for recent legalizer change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/vec_insert.ll')
-rw-r--r-- | test/CodeGen/PowerPC/vec_insert.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/vec_insert.ll b/test/CodeGen/PowerPC/vec_insert.ll new file mode 100644 index 0000000..04bbe65 --- /dev/null +++ b/test/CodeGen/PowerPC/vec_insert.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep sth + +define <8 x i16> @insert(<8 x i16> %foo, i16 %a) nounwind { +entry: + %vecext = insertelement <8 x i16> %foo, i16 %a, i32 7 ; <i8> [#uses=1] + ret <8 x i16> %vecext +} + |