1 ; RUN: llvm-as < %s | llc -relocation-model=pic -mtriple=i386-linux-gnu -asm-verbose=false | not grep -F .text
2 ; RUN: llvm-as < %s | llc -relocation-model=pic -mtriple=i686-apple-darwin -asm-verbose=false | not grep lea
3 ; RUN: llvm-as < %s | llc -relocation-model=pic -mtriple=i686-apple-darwin -asm-verbose=false | grep add | count 2
5 declare void @_Z3bari(i32)
7 define linkonce void @_Z3fooILi1EEvi(i32 %Y) {
9 %Y_addr = alloca i32 ; <i32*> [#uses=2]
10 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
11 store i32 %Y, i32* %Y_addr
12 %tmp = load i32* %Y_addr ; <i32> [#uses=1]
13 switch i32 %tmp, label %bb10 [
35 bb: ; preds = %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry
38 bb1: ; preds = %bb, %entry
41 bb2: ; preds = %bb1, %entry
42 call void @_Z3bari( i32 1 )
48 bb4: ; preds = %bb3, %entry
51 bb5: ; preds = %bb4, %entry
54 bb6: ; preds = %bb5, %entry
55 call void @_Z3bari( i32 2 )
61 bb8: ; preds = %bb7, %entry
64 bb9: ; preds = %bb8, %entry
65 call void @_Z3bari( i32 3 )
68 bb10: ; preds = %entry
71 bb11: ; preds = %bb10, %bb9, %bb6, %bb2
74 return: ; preds = %bb11