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
15 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_branch_8
16 # CHECK-INSTR: beq a0, a1, . -12
19 # CHECK-FIXUP: fixup A - offset: 0, value: LBL1, kind: fixup_xtensa_branch_8
20 # CHECK-INSTR: beq a0, a1, . +24
23 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_branch_12
24 # CHECK-INSTR: beqz a2, . -18
27 # CHECK-FIXUP: fixup A - offset: 0, value: LBL1, kind: fixup_xtensa_branch_12
28 # CHECK-INSTR: beqz a2, . +18
31 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_call_18
32 # CHECK-INSTR: call0 . -24
35 # CHECK-FIXUP: fixup A - offset: 0, value: LBL2, kind: fixup_xtensa_call_18
36 # CHECK-INSTR: call0 . +2056
39 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_jump_18
40 # CHECK-INSTR: j . -30
43 # CHECK-FIXUP: fixup A - offset: 0, value: LBL2, kind: fixup_xtensa_jump_18
44 # CHECK-INSTR: j . +2047
47 # CHECK-FIXUP: fixup A - offset: 0, value: LBL0, kind: fixup_xtensa_l32r_16
48 # CHECK-INSTR: l32r a1, . -36