1 ; RUN
: llvm-mc
-triple
=m68k
--mcpu
=M68020
-motorola-integers
-filetype
=obj
< %s \
2 ; RUN
: | llvm-objdump
-d
- | FileCheck
%s
3 ; RUN
: llvm-mc
-triple m68k
--mcpu
=M68020
-show-encoding
--position-independent
%s
-o
- \
4 ; RUN
: | FileCheck
-check-prefix
=INSTR
-check-prefix
=FIXUP
%s
6 ; CHECK-LABEL
: <TIGHT
>:
9 ; INSTR
: bra
.LBB0_2 ; encoding: [0x60,A]
10 ; FIXUP
: fixup
A - offset
: 1, value
: .LBB0_2-1, kind: FK_PCRel_1
17 ; CHECK-LABEL
: <RELAXED
>:
20 ; INSTR
: bra
.LBB1_2 ; encoding: [0x60,A]
21 ; FIXUP
: fixup
A - offset
: 1, value
: .LBB1_2-1, kind: FK_PCRel_1
23 .space 0x80 ; Greater than i8::MAX
28 ; CHECK-LABEL
: <RELAXED_32
>:
33 ; INSTR
: bra
.LBB2_1 ; encoding: [0x60,A]
34 ; FIXUP
: fixup
A - offset
: 1, value
: .LBB2_1-1, kind: FK_PCRel_1
36 .space 0x8000 ; Greater than i16::MAX.
41 ; CHECK-LABEL
: <ZERO
>:
44 ; INSTR
: bra
.LBB3_1 ; encoding: [0x60,A]
45 ; FIXUP
: fixup
A - offset
: 1, value
: .LBB3_1-1, kind: FK_PCRel_1