diff options
| author | Dan Gohman <gohman@apple.com> | 2007-09-24 15:54:53 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-09-24 15:54:53 +0000 |
| commit | e40c7b097354974ebd42c7e5d54440b07b57cc33 (patch) | |
| tree | 9d208c5d8dc4264c1ca85414df37b81dbfe829c3 /test/CodeGen | |
| parent | ea81d095dcd3ff37fb2ccb6dae31fdf00f45a1b9 (diff) | |
Use the correct result value type instead of using getValueType(0)
in ExpandEXTRACT_VECTOR_ELT and SplitVectorOp. This fixes an abort
in the included testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/X86/extractelement-from-arg.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/extractelement-from-arg.ll b/test/CodeGen/X86/extractelement-from-arg.ll new file mode 100644 index 0000000000..d28f016dba --- /dev/null +++ b/test/CodeGen/X86/extractelement-from-arg.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as %s -o - | llc -march=x86-64 + +define void @test(float* %R, <4 x float> %X) { + %tmp = extractelement <4 x float> %X, i32 3 + store float %tmp, float* %R + ret void +} |
