2 ; RUN: rm -rf %t && mkdir %t && cd %t
3 ; RUN: llvm-as %s -o a.bc
4 ; RUN: ld.lld --lto-emit-asm -shared a.bc -o out 2>&1 | count 0
5 ; RUN: FileCheck %s < out.lto.s
6 ; RUN: ld.lld --plugin-opt=emit-asm --plugin-opt=lto-partitions=2 -shared a.bc -o out
7 ; RUN: cat out.lto.s out.lto.1.s | FileCheck %s
9 ; RUN: ld.lld --lto-emit-asm --save-temps -shared a.bc -o out
10 ; RUN: FileCheck --input-file out.lto.s %s
11 ; RUN: llvm-dis out.0.4.opt.bc -o - | FileCheck --check-prefix=OPT %s
13 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
14 target triple = "x86_64-unknown-linux-gnu"
16 ;; Note: we also check for the presence of comments; --lto-emit-asm output should be verbose.
18 ; CHECK-DAG: # -- Begin function f1
20 ; OPT: define void @f1()
25 ; CHECK-DAG: # -- Begin function f2
27 ; OPT: define void @f2()