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 | FileCheck %s
3 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | not grep 'lJTI'
7 declare void @_Z3bari(i32)
9 define linkonce void @_Z3fooILi1EEvi(i32 %Y) nounwind {
13 ; CHECK: Ltmp0 = LJTI0_0-L0$pb
14 ; CHECK-NEXT: addl Ltmp0(%eax,%ecx,4)
15 ; CHECK-NEXT: jmpl *%eax
16 %Y_addr = alloca i32 ; <i32*> [#uses=2]
17 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
18 store i32 %Y, i32* %Y_addr
19 %tmp = load i32* %Y_addr ; <i32> [#uses=1]
20 switch i32 %tmp, label %bb10 [
42 bb: ; preds = %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry
45 bb1: ; preds = %bb, %entry
48 bb2: ; preds = %bb1, %entry
49 call void @_Z3bari( i32 1 )
55 bb4: ; preds = %bb3, %entry
58 bb5: ; preds = %bb4, %entry
61 bb6: ; preds = %bb5, %entry
62 call void @_Z3bari( i32 2 )
68 bb8: ; preds = %bb7, %entry
71 bb9: ; preds = %bb8, %entry
72 call void @_Z3bari( i32 3 )
75 bb10: ; preds = %entry
78 bb11: ; preds = %bb10, %bb9, %bb6, %bb2
81 return: ; preds = %bb11