aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/AVR/inst-brlt.s
blob: 58e57c4dc7e1d529e35b04bbffecbf5efb9b0b3d (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:
  brlt .+16
  brlt .+2
  brlt bar

bar:

; CHECK: brlt .Ltmp0+16+2  ; encoding: [0bAAAAA100,0b111100AA]
; CHECK: brlt .Ltmp1+2+2   ; encoding: [0bAAAAA100,0b111100AA]
; CHECK: brlt bar            ; encoding: [0bAAAAA100,0b111100AA]

; INST-LABEL: <foo>:
; INST-NEXT: fc f3    brlt .-2
; INST-NEXT: R_AVR_7_PCREL .text+0x12
; INST-NEXT: fc f3    brlt .-2
; INST-NEXT: R_AVR_7_PCREL .text+0x6
; INST-NEXT: fc f3    brlt .-2
; INST-NEXT: R_AVR_7_PCREL .text+0x6