Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / elf-reloc-ldrlit.s
blobb3abc946ffa3d87595619d5aaee72e530cfb66e2
1 // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \
2 // RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s
3 // RUN: llvm-mc -triple=aarch64-none-linux-gnu_ilp32 -filetype=obj %s -o - | \
4 // RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ-ILP32 %s
6 ldr x0, some_label
7 ldr w3, some_label
8 ldrsw x9, some_label
9 prfm pldl3keep, some_label
11 // OBJ: Relocations [
12 // OBJ-NEXT: Section {{.*}} .rela.text {
13 // OBJ-NEXT: 0x0 R_AARCH64_LD_PREL_LO19 some_label 0x0
14 // OBJ-NEXT: 0x4 R_AARCH64_LD_PREL_LO19 some_label 0x0
15 // OBJ-NEXT: 0x8 R_AARCH64_LD_PREL_LO19 some_label 0x0
16 // OBJ-NEXT: 0xC R_AARCH64_LD_PREL_LO19 some_label 0x0
17 // OBJ-NEXT: }
18 // OBJ-NEXT: ]
20 // OBJ-ILP32: Relocations [
21 // OBJ-ILP32-NEXT: Section {{.*}} .rela.text {
22 // OBJ-ILP32-NEXT: 0x0 R_AARCH64_P32_LD_PREL_LO19 some_label 0x0
23 // OBJ-ILP32-NEXT: 0x4 R_AARCH64_P32_LD_PREL_LO19 some_label 0x0
24 // OBJ-ILP32-NEXT: 0x8 R_AARCH64_P32_LD_PREL_LO19 some_label 0x0
25 // OBJ-ILP32-NEXT: 0xC R_AARCH64_P32_LD_PREL_LO19 some_label 0x0
26 // OBJ-ILP32-NEXT: }
27 // OBJ-ILP32-NEXT: ]