diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-03-26 04:58:50 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-03-26 04:58:50 +0000 |
commit | c77a10fe0a40861bcb4bd2a0c170c948a57be688 (patch) | |
tree | d632e12c57e2de615562ffeebbe190ebf927be5c /test | |
parent | 32ce3f944d4d2f679e11437b2a7ceee9fcdd4395 (diff) | |
download | external_llvm-c77a10fe0a40861bcb4bd2a0c170c948a57be688.zip external_llvm-c77a10fe0a40861bcb4bd2a0c170c948a57be688.tar.gz external_llvm-c77a10fe0a40861bcb4bd2a0c170c948a57be688.tar.bz2 |
Fix a typo and add a test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/ScalarRepl/vector_promote.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/ScalarRepl/vector_promote.ll b/test/Transforms/ScalarRepl/vector_promote.ll index 67bbf71..c51c924 100644 --- a/test/Transforms/ScalarRepl/vector_promote.ll +++ b/test/Transforms/ScalarRepl/vector_promote.ll @@ -187,3 +187,18 @@ entry: ; CHECK: extractelement <4 x i128> ; CHECK: insertelement <4 x i128> } + +define float @test13(<4 x float> %x, <2 x i32> %y) { + %a = alloca <4 x float> + store <4 x float> %x, <4 x float>* %a + %p = bitcast <4 x float>* %a to <2 x float>* + %b = load <2 x float>* %p + %q = getelementptr <4 x float>* %a, i32 0, i32 2 + %c = load float* %q + %r = bitcast <4 x float>* %a to <2 x i32>* + store <2 x i32> %y, <2 x i32>* %r + ret float %c +; CHECK: @test13 +; CHECK-NOT: alloca +; CHECK: bitcast <4 x float> %x to i128 +} |