blob: 64383169d293839b7bb150226fda668c584ba466 [file] [log] [blame]
Tanya Lattner366c2032008-02-19 01:44:26 +00001; RUN: llvm-as < %s | llvm-dis
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner366c2032008-02-19 01:44:26 +00003@foo = external global <4 x float> ; <<4 x float>*> [#uses=1]
4@bar = external global <4 x float> ; <<4 x float>*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattner366c2032008-02-19 01:44:26 +00006define void @main() {
7 %t0 = load <4 x float>* @foo ; <<4 x float>> [#uses=3]
8 %t1 = add <4 x float> %t0, %t0 ; <<4 x float>> [#uses=1]
9 %t2 = select i1 true, <4 x float> %t0, <4 x float> %t1 ; <<4 x float>> [#uses=1]
10 store <4 x float> %t2, <4 x float>* @bar
11 ret void
Dan Gohman8c89a502007-08-15 13:36:28 +000012}
Tanya Lattner366c2032008-02-19 01:44:26 +000013