projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
446d952
)
Add a test for PR10565.
author
Cameron Zwarich
<zwarich@apple.com>
Tue, 11 Oct 2011 06:10:37 +0000
(06:10 +0000)
committer
Cameron Zwarich
<zwarich@apple.com>
Tue, 11 Oct 2011 06:10:37 +0000
(06:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141647
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/ScalarRepl/vector_promote.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/ScalarRepl/vector_promote.ll
b/test/Transforms/ScalarRepl/vector_promote.ll
index 3058a36a97841e02ac3098bc99268c8130146651..5c82ae4d196dbf7285fd250b9889e3641a3e3d97 100644
(file)
--- a/
test/Transforms/ScalarRepl/vector_promote.ll
+++ b/
test/Transforms/ScalarRepl/vector_promote.ll
@@
-96,3
+96,18
@@
define i64 @test6(<2 x float> %X) {
; CHECK: bitcast <2 x float> %X to i64
; CHECK: ret i64
}
+
+%struct.test7 = type { [6 x i32] }
+
+define void @test7() {
+entry:
+ %memtmp = alloca %struct.test7, align 16
+ %0 = bitcast %struct.test7* %memtmp to <4 x i32>*
+ store <4 x i32> zeroinitializer, <4 x i32>* %0, align 16
+ %1 = getelementptr inbounds %struct.test7* %memtmp, i64 0, i32 0, i64 5
+ store i32 0, i32* %1, align 4
+ ret void
+; CHECK: @test7
+; CHECK-NOT: alloca
+; CHECK: and i192
+}