Tanya Lattner | e9789ef | 2004-11-06 23:32:43 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as -f %s -o %t.bc |
| 2 | ; RUN: lli %t.bc > /dev/null |
| 3 | |
Chris Lattner | e22766c | 2003-05-12 02:27:05 +0000 | [diff] [blame] | 4 | target endian = little |
| 5 | target pointersize = 32 |
| 6 | |
| 7 | implementation |
| 8 | |
Chris Lattner | bbd5839 | 2003-05-12 02:31:48 +0000 | [diff] [blame] | 9 | int %main() { |
Chris Lattner | e22766c | 2003-05-12 02:27:05 +0000 | [diff] [blame] | 10 | entry: |
Chris Lattner | bbd5839 | 2003-05-12 02:31:48 +0000 | [diff] [blame] | 11 | br label %endif |
Chris Lattner | e22766c | 2003-05-12 02:27:05 +0000 | [diff] [blame] | 12 | then: |
| 13 | br label %endif |
| 14 | endif: |
Chris Lattner | bbd5839 | 2003-05-12 02:31:48 +0000 | [diff] [blame] | 15 | %x = phi uint [ 4, %entry ], [ 27, %then ] |
| 16 | %result = phi int [ 32, %then ], [ 0, %entry ] |
Chris Lattner | e22766c | 2003-05-12 02:27:05 +0000 | [diff] [blame] | 17 | ret int 0 |
| 18 | } |