Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / inst-rjmp.s
blob3dbac39e055ddf3e19ebe7b87b70ad006303ab21
1 ; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
2 ; RUN: llvm-mc -filetype=obj -triple avr < %s \
3 ; RUN: | llvm-objdump -d - | FileCheck --check-prefix=INST %s
6 foo:
8 rjmp .+2
9 rjmp .-2
10 rjmp foo
11 rjmp .+8
12 rjmp end
13 rjmp .+0
14 end:
15 rjmp .-4
16 rjmp .-6
18 rjmp x
19 .short 0xc00f
21 ; CHECK: rjmp .Ltmp0+2 ; encoding: [A,0b1100AAAA]
22 ; CHECK: ; fixup A - offset: 0, value: .Ltmp0+2, kind: fixup_13_pcrel
23 ; CHECK: rjmp .Ltmp1-2 ; encoding: [A,0b1100AAAA]
24 ; CHECK: ; fixup A - offset: 0, value: .Ltmp1-2, kind: fixup_13_pcrel
25 ; CHECK: rjmp foo ; encoding: [A,0b1100AAAA]
26 ; CHECK: ; fixup A - offset: 0, value: foo, kind: fixup_13_pcrel
27 ; CHECK: rjmp .Ltmp2+8 ; encoding: [A,0b1100AAAA]
28 ; CHECK: ; fixup A - offset: 0, value: .Ltmp2+8, kind: fixup_13_pcrel
29 ; CHECK: rjmp end ; encoding: [A,0b1100AAAA]
30 ; CHECK: ; fixup A - offset: 0, value: end, kind: fixup_13_pcrel
31 ; CHECK: rjmp .Ltmp3+0 ; encoding: [A,0b1100AAAA]
32 ; CHECK: ; fixup A - offset: 0, value: .Ltmp3+0, kind: fixup_13_pcrel
33 ; CHECK: rjmp .Ltmp4-4 ; encoding: [A,0b1100AAAA]
34 ; CHECK: ; fixup A - offset: 0, value: .Ltmp4-4, kind: fixup_13_pcrel
35 ; CHECK: rjmp .Ltmp5-6 ; encoding: [A,0b1100AAAA]
36 ; CHECK: ; fixup A - offset: 0, value: .Ltmp5-6, kind: fixup_13_pcrel
37 ; CHECK: rjmp x ; encoding: [A,0b1100AAAA]
38 ; CHECK: ; fixup A - offset: 0, value: x, kind: fixup_13_pcrel
40 ; INST: 01 c0 rjmp .+2
41 ; INST: ff cf rjmp .-2
42 ; INST: 00 c0 rjmp .+0
43 ; INST: 04 c0 rjmp .+8
44 ; INST: 00 c0 rjmp .+0
45 ; INST: 00 c0 rjmp .+0
46 ; INST: fe cf rjmp .-4
47 ; INST: fd cf rjmp .-6
48 ; INST: 00 c0 rjmp .+0
49 ; INST: 0f c0 rjmp .+30