brintos

brintos / llvm-project-archived public Read only

0
0
Text · 640 B · 316cbf8 Raw
26 lines · plain
1; RUN: llvm-as %s -o %t.o2 3; RUN: not %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \4; RUN:    -plugin-opt=-pass-remarks=inline %t.o -o %t2.o 2>&1 | FileCheck %s5 6; RUN: not %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \7; RUN:   %t.o -o %t2.o 2>&1 | FileCheck -allow-empty --check-prefix=NO-REMARK %s8 9 10; CHECK: 'f' inlined into '_start'11; NO-REMARK-NOT: inlined12target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"13target triple = "x86_64-unknown-linux-gnu"14 15declare i32 @bar()16 17define i32 @f() {18  %a = call i32 @bar()19  ret i32 %a20}21 22define i32 @_start() {23  %call = call i32 @f()24  ret i32 %call25}26