• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
2
3
4foo:
5  subi r22, 82
6  subi r27, 39
7  subi r31, 244
8  subi r16, 144
9
10  subi r20, EXTERN_SYMBOL+0
11
12; CHECK: subi r22, 82                  ; encoding: [0x62,0x55]
13; CHECK: subi r27, 39                  ; encoding: [0xb7,0x52]
14; CHECK: subi r31, 244                 ; encoding: [0xf4,0x5f]
15; CHECK: subi r16, 144                 ; encoding: [0x00,0x59]
16
17; CHECK: subi    r20, EXTERN_SYMBOL+0  ; encoding: [0x40'A',0x50]
18; CHECK:                               ;   fixup A - offset: 0, value: EXTERN_SYMBOL+0, kind: fixup_ldi
19