1; REQUIRES: x86 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 8 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 12 13target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 14target triple = "x86_64-unknown-linux-gnu" 15 16;; Note: we also check for the presence of comments; --lto-emit-asm output should be verbose. 17 18; CHECK-DAG: # -- Begin function f1 19; CHECK-DAG: f1: 20; OPT: define void @f1() 21define void @f1() { 22 ret void 23} 24 25; CHECK-DAG: # -- Begin function f2 26; CHECK-DAG: f2: 27; OPT: define void @f2() 28define void @f2() { 29 ret void 30} 31