projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[LibCallSimplifier] don't allow sqrt transform unless all ops are unsafe
[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 9835199ba7db0b7c5c708fc4b5871b143755b792..3923c9648ecf3ca58a80b49fc8d2074412a692d8 100644
(file)
--- a/
test/Other/2004-08-16-PackedSimple.ll
+++ b/
test/Other/2004-08-16-PackedSimple.ll
@@
-1,15
+1,13
@@
-; RUN: llvm-
upgrade < %s | llvm-a
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>, <4 x float>* @foo ; <<4 x float>> [#uses=3]
+ %t2 = fadd <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