18 lines · plain
1; RUN: llvm-as %s -o %t1.bc2; RUN: llvm-lto2 run %t1.bc -o %t2.o -r=%t1.bc,caller,plx -r=%t1.bc,extern_func,plx -save-temps3; RUN: llvm-dis %t2.o.0.5.precodegen.bc -o - | FileCheck %s4 5target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"6target triple = "x86_64-unknown-fuchsia"7 8declare void @extern_func()9 10; CHECK: define {{.*}} void @caller() {{.*}}{11; CHECK-NEXT: tail call void dso_local_equivalent @extern_func()12; CHECK-NEXT: ret void13; CHECK-NEXT: }14define void @caller() {15 call void dso_local_equivalent @extern_func()16 ret void17}18