; REQUIRES: x86 ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld --lto-emit-asm -shared %t.o -o - | FileCheck %s ; RUN: ld.lld --plugin-opt=emit-asm --plugin-opt=lto-partitions=2 -shared %t.o -o %t2.s ; RUN: cat %t2.s %t2.s1 | FileCheck %s ; RUN: ld.lld --lto-emit-asm --save-temps -shared %t.o -o %t3.s ; RUN: FileCheck --input-file %t3.s %s ; RUN: llvm-dis %t3.s.0.4.opt.bc -o - | FileCheck --check-prefix=OPT %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" ; CHECK-DAG: f1: ; OPT-DAG: define void @f1() define void @f1() { ret void } ; CHECK-DAG: f2: ; OPT-DAG: define void @f2() define void @f2() { ret void }