1 ; RUN: llc < %s -relocation-model=pic -mtriple=i386-linux-gnu -asm-verbose=false | not grep -F .text
2 ; RUN: llc < %s -relocation-model=pic -mtriple=i686-apple-darwin -asm-verbose=false | not grep lea
3 ; RUN: llc < %s -relocation-model=pic -mtriple=i686-apple-darwin -asm-verbose=false | grep add | count 2
4 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | not grep 'lJTI'
7 declare void @_Z3bari(i32)
9 define linkonce void @_Z3fooILi1EEvi(i32 %Y) nounwind {
11 %Y_addr = alloca i32 ; <i32*> [#uses=2]
12 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
13 store i32 %Y, i32* %Y_addr
14 %tmp = load i32* %Y_addr ; <i32> [#uses=1]
15 switch i32 %tmp, label %bb10 [
37 bb: ; preds = %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry
40 bb1: ; preds = %bb, %entry
43 bb2: ; preds = %bb1, %entry
44 call void @_Z3bari( i32 1 )
50 bb4: ; preds = %bb3, %entry
53 bb5: ; preds = %bb4, %entry
56 bb6: ; preds = %bb5, %entry
57 call void @_Z3bari( i32 2 )
63 bb8: ; preds = %bb7, %entry
66 bb9: ; preds = %bb8, %entry
67 call void @_Z3bari( i32 3 )
70 bb10: ; preds = %entry
73 bb11: ; preds = %bb10, %bb9, %bb6, %bb2
76 return: ; preds = %bb11