diff options
author | Dan Gohman <djg@cray.com> | 2007-08-10 14:59:38 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-08-10 14:59:38 +0000 |
commit | f7b05137e4a49f6e41fcf12c910106cc1ea32e6b (patch) | |
tree | af1cbb5bfafcbdd280c610b53dd1e41ab856dd5f /test | |
parent | e4e4d3eaa6f62a7f04abd2291e4e7a99a1d3b0ad (diff) | |
download | external_llvm-f7b05137e4a49f6e41fcf12c910106cc1ea32e6b.zip external_llvm-f7b05137e4a49f6e41fcf12c910106cc1ea32e6b.tar.gz external_llvm-f7b05137e4a49f6e41fcf12c910106cc1ea32e6b.tar.bz2 |
Fix EXTRACT_ELEMENT, EXTRACT_SUBVECTOR, and EXTRACT_VECTOR_ELT to
use an intptr ValueType instead of i32 for the index operand in
getCopyToParts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/insertelement-copytoregs.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/insertelement-copytoregs.ll b/test/CodeGen/X86/insertelement-copytoregs.ll new file mode 100644 index 0000000..0eef517 --- /dev/null +++ b/test/CodeGen/X86/insertelement-copytoregs.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=x86-64 | grep -v IMPLICIT_DEF + +define void @foo(<2 x float>* %p) { + %t = insertelement <2 x float> undef, float 0.0, i32 0 + %v = insertelement <2 x float> %t, float 0.0, i32 1 + br label %bb8 + +bb8: + store <2 x float> %v, <2 x float>* %p + ret void +} |