[LLD][COFF] Separate EC and native exports for ARM64X (#123652)
[llvm-project.git] / llvm / test / MC / AVR / inst-brbc.s
blob4edbbfd858024855f0578ba8341df51e5f19c650
1 ; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
2 ; RUN: llvm-mc -filetype=obj -triple avr < %s \
3 ; RUN: | llvm-objdump -dr - | FileCheck --check-prefix=INST %s
5 foo:
6 brbc 3, .+8
7 brbc 0, .-16
8 .short 0xf759
9 .short 0xf752
10 .short 0xf74c
11 .short 0xf4c7
13 ; CHECK: brvc (.Ltmp0+8)+2 ; encoding: [0bAAAAA011,0b111101AA]
14 ; CHECK-NEXT: ; fixup A - offset: 0, value: (.Ltmp0+8)+2, kind: fixup_7_pcrel
16 ; CHECK: brcc (.Ltmp1-16)+2 ; encoding: [0bAAAAA000,0b111101AA]
17 ; CHECK-NEXT: ; fixup A - offset: 0, value: (.Ltmp1-16)+2, kind: fixup_7_pcrel
19 ; INST-LABEL: <foo>:
20 ; INST-NEXT: 23 f4 brvc .+8
21 ; INST-NEXT: c0 f7 brsh .-16
22 ; INST-NEXT: 59 f7 brne .-42
23 ; INST-NEXT: 52 f7 brpl .-44
24 ; INST-NEXT: 4c f7 brge .-46
25 ; INST-NEXT: c7 f4 brid .+48