[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / llvm / test / MC / Xtensa / Relocations / fixups.s
blobcd76f2a23322d8b45df7c30262ea0d65cbcd3f79
1 # RUN: llvm-mc -triple xtensa < %s -show-encoding \
2 # RUN: | FileCheck -check-prefix=CHECK-FIXUP %s
3 # RUN: llvm-mc -filetype=obj -triple xtensa < %s \
4 # RUN: | llvm-objdump -d - | FileCheck -check-prefix=CHECK-INSTR %s
7 # Checks that fixups that can be resolved within the same object file are
8 # applied correctly
9 .align 4
10 LBL0:
12 .fill 12
14 beq a0, a1, LBL0
15 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_branch_8
16 # CHECK-INSTR: beq a0, a1, . -12
18 beq a0, a1, LBL1
19 # CHECK-FIXUP: fixup A - offset: 0, value: LBL1, kind: fixup_xtensa_branch_8
20 # CHECK-INSTR: beq a0, a1, . +24
22 beqz a2, LBL0
23 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_branch_12
24 # CHECK-INSTR: beqz a2, . -18
26 beqz a2, LBL1
27 # CHECK-FIXUP: fixup A - offset: 0, value: LBL1, kind: fixup_xtensa_branch_12
28 # CHECK-INSTR: beqz a2, . +18
30 call0 LBL0
31 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_call_18
32 # CHECK-INSTR: call0 . -24
34 call0 LBL2
35 # CHECK-FIXUP: fixup A - offset: 0, value: LBL2, kind: fixup_xtensa_call_18
36 # CHECK-INSTR: call0 . +2056
38 j LBL0
39 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_jump_18
40 # CHECK-INSTR: j . -30
42 j LBL2
43 # CHECK-FIXUP: fixup A - offset: 0, value: LBL2, kind: fixup_xtensa_jump_18
44 # CHECK-INSTR: j . +2047
46 l32r a1, LBL0
47 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_l32r_16
48 # CHECK-INSTR: l32r a1, . -36
50 LBL1:
52 .fill 2041
54 LBL2: