Tanya Lattner | 2ad38be | 2008-02-19 01:44:26 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis |
Reid Spencer | 442729a | 2004-08-20 06:06:43 +0000 | [diff] [blame] | 2 | |
Tanya Lattner | 2ad38be | 2008-02-19 01:44:26 +0000 | [diff] [blame] | 3 | @foo = external global <4 x float> ; <<4 x float>*> [#uses=1] |
| 4 | @bar = external global <4 x float> ; <<4 x float>*> [#uses=1] |
Reid Spencer | 442729a | 2004-08-20 06:06:43 +0000 | [diff] [blame] | 5 | |
Tanya Lattner | 2ad38be | 2008-02-19 01:44:26 +0000 | [diff] [blame] | 6 | define void @main() { |
| 7 | %t0 = load <4 x float>* @foo ; <<4 x float>> [#uses=3] |
Dan Gohman | ae3a0be | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 8 | %t1 = fadd <4 x float> %t0, %t0 ; <<4 x float>> [#uses=1] |
Tanya Lattner | 2ad38be | 2008-02-19 01:44:26 +0000 | [diff] [blame] | 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 Gohman | 28beeea | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 12 | } |
Tanya Lattner | 2ad38be | 2008-02-19 01:44:26 +0000 | [diff] [blame] | 13 | |