Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / RISCV / reloc-64.s
bloba08d4a72ad0bef44d628ba5945fa40051602054e
1 // RUN: llvm-mc -triple riscv64 -filetype=obj -o %t.o %s
2 // RUN: ld.lld -q -o %t %t.o
3 // RUN: llvm-bolt -o %t.bolt %t
4 // RUN: llvm-readelf -s %t.bolt | FileCheck --check-prefix=SYM %s
5 // RUN: llvm-readelf -x .data %t.bolt | FileCheck --check-prefix=DATA %s
7 // SYM: {{0+}}400000 {{.*}} _start{{$}}
9 // DATA: Hex dump of section '.data':
10 // DATA-NEXT: 00004000 00000000
12 .data
13 .globl d
14 .p2align 3
16 .dword _start
18 .text
19 .globl _start
20 .p2align 1
21 _start:
22 ret
23 ## Dummy relocation to force relocation mode; without it, _start will not be
24 ## moved to a new address.
25 .reloc 0, R_RISCV_NONE
26 .size _start, .-_start