File: inst-subi.s

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,634,820 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (26 lines) | stat: -rw-r--r-- 848 bytes parent folder | download | duplicates (12)
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
; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump --no-print-imm-hex -d - | FileCheck --check-prefix=CHECK-INST %s


foo:
  subi r22, 82
  subi r27, 39
  subi r31, 244
  subi r16, 144

  subi r20, EXTERN_SYMBOL+0

; CHECK: subi r22, 82                  ; encoding: [0x62,0x55]
; CHECK: subi r27, 39                  ; encoding: [0xb7,0x52]
; CHECK: subi r31, 244                 ; encoding: [0xf4,0x5f]
; CHECK: subi r16, 144                 ; encoding: [0x00,0x59]

; CHECK: subi    r20, EXTERN_SYMBOL+0  ; encoding: [0x40'A',0x50]
; CHECK:                               ;   fixup A - offset: 0, value: EXTERN_SYMBOL+0, kind: fixup_ldi

; CHECK-INST: subi r22, 82
; CHECK-INST: subi r27, 39
; CHECK-INST: subi r31, 244
; CHECK-INST: subi r16, 144

; CHECK-INST: subi r20, 0