projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revamp the loop unroller, extending it to correctly update PHI nodes
[oota-llvm.git]
/
test
/
Other
/
2004-08-16-PackedSimple.ll
diff --git
a/test/Other/2004-08-16-PackedSimple.ll
b/test/Other/2004-08-16-PackedSimple.ll
index 10cee3823ab93a76850c25ae44b0f921673d4c21..5bb8b7930009e8434a37041885cc1505aa09a639 100644
(file)
--- a/
test/Other/2004-08-16-PackedSimple.ll
+++ b/
test/Other/2004-08-16-PackedSimple.ll
@@
-1,15
+1,13
@@
; RUN: llvm-as < %s | llvm-dis
; RUN: llvm-as < %s | llvm-dis
-%foo = uninitialized global <4 x float>;
-%bar = uninitialized global <4 x float>;
+@foo = external global <4 x float> ; <<4 x float>*> [#uses=1]
+@bar = external global <4 x float> ; <<4 x float>*> [#uses=1]
-implementation ; Functions:
+define void @main() {
+ %t0 = load <4 x float>* @foo ; <<4 x float>> [#uses=3]
+ %t2 = add <4 x float> %t0, %t0 ; <<4 x float>> [#uses=1]
+ %t3 = select i1 false, <4 x float> %t0, <4 x float> %t2 ; <<4 x float>> [#uses=1]
+ store <4 x float> %t3, <4 x float>* @bar
+ ret void
+}
-void %main()
-{
- %t0 = load <4 x float>* %foo
- %t2 = add <4 x float> %t0, %t0
- %t3 = select bool false, <4 x float> %t0, <4 x float> %t2
- store <4 x float> %t3, <4 x float>* %bar
- ret void
-}
\ No newline at end of file