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 brtc .+529 brtc .+5010 brtc bar11 12bar:13 14; CHECK: brtc .Ltmp0+52+2 ; encoding: [0bAAAAA110,0b111101AA]15; CHECK: brtc .Ltmp1+50+2 ; encoding: [0bAAAAA110,0b111101AA]16; CHECK: brtc bar ; encoding: [0bAAAAA110,0b111101AA]17 18; INST-LABEL: <foo>:19; INST-NEXT: fe f7 brtc .-220; INST-NEXT: R_AVR_7_PCREL .text+0x3621; INST-NEXT: fe f7 brtc .-222; INST-NEXT: R_AVR_7_PCREL .text+0x3623; INST-NEXT: fe f7 brtc .-224; INST-NEXT: R_AVR_7_PCREL .text+0x625