2 ; RUN: llvm-as %s -o %t.o
3 ; RUN: ld.lld --lto-emit-asm -shared %t.o -o - | FileCheck %s
4 ; RUN: ld.lld --plugin-opt=emit-asm --plugin-opt=lto-partitions=2 -shared %t.o -o %t2.s
5 ; RUN: cat %t2.s %t2.s1 | FileCheck %s
7 ; RUN: ld.lld --lto-emit-asm --save-temps -shared %t.o -o %t3.s
8 ; RUN: FileCheck --input-file %t3.s %s
9 ; RUN: llvm-dis %t3.s.0.4.opt.bc -o - | FileCheck --check-prefix=OPT %s
11 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
12 target triple = "x86_64-unknown-linux-gnu"
14 ;; Note: we also check for the presence of comments; --lto-emit-asm output should be verbose.
16 ; CHECK-DAG: # -- Begin function f1
18 ; OPT: define void @f1()
23 ; CHECK-DAG: # -- Begin function f2
25 ; OPT: define void @f2()