28 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 breq .-189 breq .-1210 brbs 1, .-1811 brbs 1, bar12 13bar:14 15; CHECK: breq .Ltmp0-18+2 ; encoding: [0bAAAAA001,0b111100AA]16; CHECK: breq .Ltmp1-12+2 ; encoding: [0bAAAAA001,0b111100AA]17; CHECK: brbs 1, .Ltmp2-18+2 ; encoding: [0bAAAAA001,0b111100AA]18; CHECK: brbs 1, bar ; encoding: [0bAAAAA001,0b111100AA]19 20; INST-LABEL: <foo>:21; INST-NEXT: f9 f3 breq .-222; INST-NEXT: R_AVR_7_PCREL .text-0x1023; INST-NEXT: f9 f3 breq .-224; INST-NEXT: R_AVR_7_PCREL .text-0x825; INST-NEXT: f9 f3 breq .-226; INST-NEXT: R_AVR_7_PCREL .text-0xc27; INST-NEXT: f9 f3 breq .-228