aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/AVR/inst-brvc.s
blob: f65e73544027475dfdd76025281f9ae0715cec1f (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:
  brvc .-28
  brvc .-62
  brvc bar

bar:

; CHECK: brvc .Ltmp0-28+2  ; encoding: [0bAAAAA011,0b111101AA]
; CHECK: brvc .Ltmp1-62+2  ; encoding: [0bAAAAA011,0b111101AA]
; CHECK: brvc bar            ; encoding: [0bAAAAA011,0b111101AA]

; INST-LABEL: <foo>:
; INST-NEXT: fb f7      brvc .-2
; INST-NEXT: R_AVR_7_PCREL .text-0x1a
; INST-NEXT: fb f7      brvc .-2
; INST-NEXT: R_AVR_7_PCREL .text-0x3a
; INST-NEXT: fb f7      brvc .-2
; INST-NEXT: R_AVR_7_PCREL .text+0x6