1; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s 2; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -d - | FileCheck --check-prefix=CHECK-INST %s 3 4 5foo: 6 subi r22, 82 7 subi r27, 39 8 subi r31, 244 9 subi r16, 144 10 11 subi r20, EXTERN_SYMBOL+0 12 13; CHECK: subi r22, 82 ; encoding: [0x62,0x55] 14; CHECK: subi r27, 39 ; encoding: [0xb7,0x52] 15; CHECK: subi r31, 244 ; encoding: [0xf4,0x5f] 16; CHECK: subi r16, 144 ; encoding: [0x00,0x59] 17 18; CHECK: subi r20, EXTERN_SYMBOL+0 ; encoding: [0x40'A',0x50] 19; CHECK: ; fixup A - offset: 0, value: EXTERN_SYMBOL+0, kind: fixup_ldi 20 21; CHECK-INST: subi r22, 82 22; CHECK-INST: subi r27, 39 23; CHECK-INST: subi r31, 244 24; CHECK-INST: subi r16, 144 25 26; CHECK-INST: subi r20, 0 27