25 lines · plain
1; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s2;3; RUN: llvm-mc -filetype=obj -triple avr < %s \4; RUN: | llvm-objdump -dr - \5; RUN: | FileCheck --check-prefix=INST %s6 7foo:8 brts .+189 brts .+2210 brts bar11 12bar:13 14; CHECK: brts .Ltmp0+18+2 ; encoding: [0bAAAAA110,0b111100AA]15; CHECK: brts .Ltmp1+22+2 ; encoding: [0bAAAAA110,0b111100AA]16; CHECK: brts bar ; encoding: [0bAAAAA110,0b111100AA]17 18; INST-LABEL: <foo>:19; INST-NEXT: fe f3 brts .-220; INST-NEXT: R_AVR_7_PCREL .text+0x1421; INST-NEXT: fe f3 brts .-222; INST-NEXT: R_AVR_7_PCREL .text+0x1a23; INST-NEXT: fe f3 brts .-224; INST-NEXT: R_AVR_7_PCREL .text+0x625