29 lines · plain
1; RUN: llvm-as %s -o %t.o2 3; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \4; RUN: -m elf_x86_64 --plugin-opt=emit-asm \5; RUN: -shared %t.o -o %t2.s6; RUN: FileCheck --input-file %t2.s %s7 8; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \9; RUN: -m elf_x86_64 --plugin-opt=emit-asm --plugin-opt=lto-partitions=2\10; RUN: -shared %t.o -o %t2.s11; RUN: cat %t2.s %t2.s1 > %t3.s12; RUN: FileCheck --input-file %t3.s %s13 14target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"15target triple = "x86_64-unknown-linux-gnu"16 17; CHECK-DAG: f1:18define void @f1() {19 ret void20}21 22; CHECK-DAG: f2:23define void @f2() {24 ret void25}26 27; Check if comments are emitted into assembly.28; CHECK: -- End function29