diff options
| author | Cameron Zwarich <zwarich@apple.com> | 2011-03-09 08:11:02 +0000 |
|---|---|---|
| committer | Cameron Zwarich <zwarich@apple.com> | 2011-03-09 08:11:02 +0000 |
| commit | 718918b07abcbed9b57e046c4091fc20d8d4cea2 (patch) | |
| tree | 324c00f8cb9f546f1a5b1e4abe68837b25a1310b /llvm/test/Transforms/ScalarRepl | |
| parent | 19f2b3c6522507b7835518f422985cf53e82e698 (diff) | |
| download | bcm5719-llvm-718918b07abcbed9b57e046c4091fc20d8d4cea2.tar.gz bcm5719-llvm-718918b07abcbed9b57e046c4091fc20d8d4cea2.zip | |
Add a test case for r127320.
llvm-svn: 127321
Diffstat (limited to 'llvm/test/Transforms/ScalarRepl')
| -rw-r--r-- | llvm/test/Transforms/ScalarRepl/vector_promote.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Transforms/ScalarRepl/vector_promote.ll b/llvm/test/Transforms/ScalarRepl/vector_promote.ll index 898cbde3530..8e143612ebd 100644 --- a/llvm/test/Transforms/ScalarRepl/vector_promote.ll +++ b/llvm/test/Transforms/ScalarRepl/vector_promote.ll @@ -157,3 +157,17 @@ define void @test10(<4 x i256> %x, <2 x i256> %y) { ; CHECK-NEXT: insertelement <2 x i512> ; CHECK-NEXT: bitcast <2 x i512> %tmp2 to <4 x i256> } + +%union.v = type { <2 x i64> } + +define void @test11(<2 x i64> %x) { + %a = alloca %union.v + %p = getelementptr inbounds %union.v* %a, i32 0, i32 0 + store <2 x i64> %x, <2 x i64>* %p, align 16 + %q = getelementptr inbounds %union.v* %a, i32 0, i32 0 + %r = bitcast <2 x i64>* %q to <4 x float>* + %b = load <4 x float>* %r, align 16 + ret void +; CHECK: @test11 +; CHECK-NOT: alloca +} |

