X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FOther%2F2004-08-16-PackedSimple.ll;h=81cecd4235fc930fde54d081a4241ed636e02880;hb=55ec2218c448ef9e0d09b5534885b6d2a9786a73;hp=9835199ba7db0b7c5c708fc4b5871b143755b792;hpb=69ccadd7535a83b348595cf603126e6a68b2883b;p=oota-llvm.git diff --git a/test/Other/2004-08-16-PackedSimple.ll b/test/Other/2004-08-16-PackedSimple.ll index 9835199ba7d..81cecd4235f 100644 --- 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-as | 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 = 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