blob: 8b8e85aa39a39f438b4f1d4a933213cd1369ff60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
;
; RUN: llvm-mc -filetype=obj -triple avr < %s \
; RUN: | llvm-objdump -dr - \
; RUN: | FileCheck --check-prefix=INST %s
foo:
breq .-18
breq .-12
brbs 1, .-18
brbs 1, bar
bar:
; CHECK: breq .Ltmp0-18+2 ; encoding: [0bAAAAA001,0b111100AA]
; CHECK: breq .Ltmp1-12+2 ; encoding: [0bAAAAA001,0b111100AA]
; CHECK: brbs 1, .Ltmp2-18+2 ; encoding: [0bAAAAA001,0b111100AA]
; CHECK: brbs 1, bar ; encoding: [0bAAAAA001,0b111100AA]
; INST-LABEL: <foo>:
; INST-NEXT: f9 f3 breq .-2
; INST-NEXT: R_AVR_7_PCREL .text-0x10
; INST-NEXT: f9 f3 breq .-2
; INST-NEXT: R_AVR_7_PCREL .text-0x8
; INST-NEXT: f9 f3 breq .-2
; INST-NEXT: R_AVR_7_PCREL .text-0xc
; INST-NEXT: f9 f3 breq .-2
|