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 brvc .-289 brvc .-6210 brvc bar11 12bar:13 14; CHECK: brvc .Ltmp0-28+2 ; encoding: [0bAAAAA011,0b111101AA]15; CHECK: brvc .Ltmp1-62+2 ; encoding: [0bAAAAA011,0b111101AA]16; CHECK: brvc bar ; encoding: [0bAAAAA011,0b111101AA]17 18; INST-LABEL: <foo>:19; INST-NEXT: fb f7 brvc .-220; INST-NEXT: R_AVR_7_PCREL .text-0x1a21; INST-NEXT: fb f7 brvc .-222; INST-NEXT: R_AVR_7_PCREL .text-0x3a23; INST-NEXT: fb f7 brvc .-224; INST-NEXT: R_AVR_7_PCREL .text+0x625