Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ELF / gnu-unique.s
blob41e3af39a83a73ca81270de89a1724e61bb6a152
1 # RUN: llvm-mc -triple=x86_64 %s | FileCheck %s --check-prefix=ASM
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
3 # RUN: llvm-readelf -h -s %t | FileCheck %s --check-prefix=OBJ
4 # RUN: llvm-objdump --no-print-imm-hex -d -r --no-show-raw-insn %t | FileCheck %s --check-prefix=DISASM
6 # ASM: .type unique,@gnu_unique_object
8 # OBJ: OS/ABI: UNIX - GNU
9 # OBJ: Type Bind Vis Ndx Name
10 # OBJ: OBJECT UNIQUE DEFAULT [[#]] unique
12 # DISASM-LABEL: <.text>:
13 # DISASM-NEXT: movl $1, 0
14 ## unique has a non-local binding. Reference unique instead of .data
15 # DISASM-NEXT: R_X86_64_32S unique
17 movl $1, unique
19 .data
20 .globl unique
21 .type unique, @gnu_unique_object
22 unique: