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 brlo .+129 brlo .+2810 brlo bar11 12bar:13 14; CHECK: brlo .Ltmp0+12+2 ; encoding: [0bAAAAA000,0b111100AA]15; CHECK: brlo .Ltmp1+28+2 ; encoding: [0bAAAAA000,0b111100AA]16; CHECK: brlo bar ; encoding: [0bAAAAA000,0b111100AA]17 18; INST-LABEL: <foo>:19; INST-NEXT: f8 f3 brlo .-220; INST-NEXT: R_AVR_7_PCREL .text+0xe21; INST-NEXT: f8 f3 brlo .-222; INST-NEXT: R_AVR_7_PCREL .text+0x2023; INST-NEXT: f8 f3 brlo .-224; INST-NEXT: R_AVR_7_PCREL .text+0x625