1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o %t.o 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; RUN: not %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \ 4*9880d681SAndroid Build Coastguard Worker; RUN: -plugin-opt=-pass-remarks=inline %t.o -o %t2.o 2>&1 | FileCheck %s 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; RUN: not %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \ 7*9880d681SAndroid Build Coastguard Worker; RUN: %t.o -o %t2.o 2>&1 | FileCheck -allow-empty --check-prefix=NO-REMARK %s 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker; CHECK: f inlined into _start 11*9880d681SAndroid Build Coastguard Worker; NO-REMARK-NOT: inlined 12*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 13*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-linux-gnu" 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerdeclare i32 @bar() 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Workerdefine i32 @f() { 18*9880d681SAndroid Build Coastguard Worker %a = call i32 @bar() 19*9880d681SAndroid Build Coastguard Worker ret i32 %a 20*9880d681SAndroid Build Coastguard Worker} 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Workerdefine i32 @_start() { 23*9880d681SAndroid Build Coastguard Worker %call = call i32 @f() 24*9880d681SAndroid Build Coastguard Worker ret i32 %call 25*9880d681SAndroid Build Coastguard Worker} 26