1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-pc-linux -relocation-model=pic | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128" 4*9880d681SAndroid Build Coastguard Workertarget triple = "i686-pc-linux" 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind 7*9880d681SAndroid Build Coastguard Workerdefine void @test() #0 !dbg !4 { 8*9880d681SAndroid Build Coastguard Workerentry: 9*9880d681SAndroid Build Coastguard Worker call void bitcast (void (...)* @bar to void ()*)(), !dbg !11 10*9880d681SAndroid Build Coastguard Worker ret void, !dbg !12 11*9880d681SAndroid Build Coastguard Worker} 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Workerdeclare void @bar(...) #1 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="i686" "unsafe-fp-math"="false" "use-soft-float"="false" } 16*9880d681SAndroid Build Coastguard Workerattributes #1 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="i686" "unsafe-fp-math"="false" "use-soft-float"="false" } 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0} 19*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!7, !8, !9} 20*9880d681SAndroid Build Coastguard Worker!llvm.ident = !{!10} 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.8.0 (http://llvm.org/git/clang.git 3490ab8630d5643f71f1f04e46984f05b27b8d67) (http://llvm.org/git/llvm.git d2643e2ff955ed234944fe3c6b4ffc1250085843)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) 23*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "test.c", directory: "movpc-test") 24*9880d681SAndroid Build Coastguard Worker!2 = !{} 25*9880d681SAndroid Build Coastguard Worker!4 = distinct !DISubprogram(name: "test", scope: !1, file: !1, line: 2, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, isOptimized: false, unit: !0, variables: !2) 26*9880d681SAndroid Build Coastguard Worker!5 = !DISubroutineType(types: !6) 27*9880d681SAndroid Build Coastguard Worker!6 = !{null} 28*9880d681SAndroid Build Coastguard Worker!7 = !{i32 2, !"Dwarf Version", i32 4} 29*9880d681SAndroid Build Coastguard Worker!8 = !{i32 2, !"Debug Info Version", i32 3} 30*9880d681SAndroid Build Coastguard Worker!9 = !{i32 1, !"PIC Level", i32 2} 31*9880d681SAndroid Build Coastguard Worker!10 = !{!"clang version 3.8.0 (http://llvm.org/git/clang.git 3490ab8630d5643f71f1f04e46984f05b27b8d67) (http://llvm.org/git/llvm.git d2643e2ff955ed234944fe3c6b4ffc1250085843)"} 32*9880d681SAndroid Build Coastguard Worker!11 = !DILocation(line: 4, column: 3, scope: !4) 33*9880d681SAndroid Build Coastguard Worker!12 = !DILocation(line: 5, column: 1, scope: !4) 34*9880d681SAndroid Build Coastguard Worker 35*9880d681SAndroid Build Coastguard Worker; CHECK: calll .L0$pb 36*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: .Ltmp3: 37*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: .cfi_adjust_cfa_offset 4 38*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: .L0$pb: 39*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: popl 40*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: .Ltmp4: 41*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: .cfi_adjust_cfa_offset -4 42