annotate lld/test/ELF/pr34660.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 0572611fdcc8
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: aarch64
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o
anatofuz
parents:
diff changeset
4 # RUN: ld.lld --hash-style=sysv -shared %t.o -o %t
anatofuz
parents:
diff changeset
5 # RUN: llvm-objdump %t -d --no-show-raw-insn | FileCheck %s --check-prefix=DISASM
anatofuz
parents:
diff changeset
6 # RUN: llvm-readelf %t --symbols | FileCheck %s --check-prefix=SYM
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 # It would be much easier to understand/read this test if llvm-objdump would print
anatofuz
parents:
diff changeset
9 # the immediates in hex.
anatofuz
parents:
diff changeset
10 # IMM = hex(65540) = 0x10004
anatofuz
parents:
diff changeset
11 # PC = 0x10000
anatofuz
parents:
diff changeset
12 # As the relocation is PC-relative, IMM + PC = 0x20004 which is the VA of the
anatofuz
parents:
diff changeset
13 # correct symbol.
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 # DISASM: Disassembly of section .text:
anatofuz
parents:
diff changeset
16 # DISASM-EMPTY:
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
17 # DISASM-NEXT: <$x.0>:
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
18 # DISASM-NEXT: 1022c: ldr x8, 0x30294
150
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 # SYM: Symbol table '.symtab'
anatofuz
parents:
diff changeset
21 # SYM: 0000000000030294 0 NOTYPE LOCAL DEFAULT 6 patatino
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 ldr x8, patatino
anatofuz
parents:
diff changeset
24 .data
anatofuz
parents:
diff changeset
25 .zero 4
anatofuz
parents:
diff changeset
26 patatino: