blob: 1e61b235a2bbe57e8e93ccc921d5061e11a40883 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -mtriple=thumb-apple-darwin
Evan Chengac94c582007-02-01 02:27:24 +00002
3%struct.rtx_def = type { i8 }
4@str = external global [7 x i8]
5
6define 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 Spencer832254e2007-02-02 02:16:23 +000010 %tmp14 = lshr i32 %tmp7, 1
Evan Chengac94c582007-02-01 02:27:24 +000011 %tmp1415 = and i32 %tmp14, 1
12 call void (i32, ...)* @printf( i32 undef, i32 0, i32 %tmp1415 )
13 ret void
14}
15
16declare void @printf(i32, ...)