blob: 731b495a787ea84fb262dbff0ea9a978cf70eadf (
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
|
; 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:
brtc .+52
brtc .+50
brtc bar
bar:
; CHECK: brtc .Ltmp0+52+2 ; encoding: [0bAAAAA110,0b111101AA]
; CHECK: brtc .Ltmp1+50+2 ; encoding: [0bAAAAA110,0b111101AA]
; CHECK: brtc bar ; encoding: [0bAAAAA110,0b111101AA]
; INST-LABEL: <foo>:
; INST-NEXT: fe f7 brtc .-2
; INST-NEXT: R_AVR_7_PCREL .text+0x36
; INST-NEXT: fe f7 brtc .-2
; INST-NEXT: R_AVR_7_PCREL .text+0x36
; INST-NEXT: fe f7 brtc .-2
; INST-NEXT: R_AVR_7_PCREL .text+0x6
|