Debian Codegraph @

llvm/test/tools/gold/X86/emit-asm.ll

raw
1 ; RUN: llvm-as %s -o %t.o
2
3 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
4 ; RUN: -m elf_x86_64 --plugin-opt=emit-asm \
5 ; RUN: -shared %t.o -o %t2.s
6 ; RUN: FileCheck --input-file %t2.s %s
7
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.s
11 ; RUN: cat %t2.s %t2.s1 > %t3.s
12 ; RUN: FileCheck --input-file %t3.s %s
13
14 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
15 target triple = "x86_64-unknown-linux-gnu"
16
17 ; CHECK-DAG: f1:
18 define void @f1() {
19 ret void
20 }
21
22 ; CHECK-DAG: f2:
23 define void @f2() {
24 ret void
25 }
26
27 ; Check if comments are emitted into assembly.
28 ; CHECK: -- End function