31 lines · plain
1; REQUIRES: x862; RUN: rm -rf %t && mkdir %t && cd %t3; RUN: llvm-as %s -o a.bc4; RUN: ld.lld --lto-emit-asm -shared a.bc -o out 2>&1 | count 05; RUN: FileCheck %s < out.lto.s6; RUN: ld.lld --plugin-opt=emit-asm --plugin-opt=lto-partitions=2 -shared a.bc -o out7; RUN: cat out.lto.s out.lto.1.s | FileCheck %s8 9; RUN: ld.lld --lto-emit-asm --save-temps -shared a.bc -o out10; RUN: FileCheck --input-file out.lto.s %s11; RUN: llvm-dis out.0.4.opt.bc -o - | FileCheck --check-prefix=OPT %s12 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 f119; CHECK-DAG: f1:20; OPT: define void @f1()21define void @f1() {22 ret void23}24 25; CHECK-DAG: # -- Begin function f226; CHECK-DAG: f2:27; OPT: define void @f2()28define void @f2() {29 ret void30}31