Evan Cheng | 0430a8d | 2007-02-23 03:15:39 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -mtriple=thumb-apple-darwin |
Evan Cheng | ac94c58 | 2007-02-01 02:27:24 +0000 | [diff] [blame] | 2 | |
| 3 | %struct.rtx_def = type { i8 } |
| 4 | @str = external global [7 x i8] |
| 5 | |
| 6 | define void @f1() { |
| 7 | %D = alloca %struct.rtx_def, align 1 |
| 8 | %tmp1 = bitcast %struct.rtx_def* %D to i32* |
| 9 | %tmp7 = load i32* %tmp1 |
Reid Spencer | 832254e | 2007-02-02 02:16:23 +0000 | [diff] [blame] | 10 | %tmp14 = lshr i32 %tmp7, 1 |
Evan Cheng | ac94c58 | 2007-02-01 02:27:24 +0000 | [diff] [blame] | 11 | %tmp1415 = and i32 %tmp14, 1 |
| 12 | call void (i32, ...)* @printf( i32 undef, i32 0, i32 %tmp1415 ) |
| 13 | ret void |
| 14 | } |
| 15 | |
| 16 | declare void @printf(i32, ...) |