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
4foo:
5  neg r15
6  neg r1
7  neg r22
8  neg r31
9
10; CHECK: neg r15                  ; encoding: [0xf1,0x94]
11; CHECK: neg r1                   ; encoding: [0x11,0x94]
12; CHECK: neg r22                  ; encoding: [0x61,0x95]
13; CHECK: neg r31                  ; encoding: [0xf1,0x95]
14
15; CHECK-INST: neg r15
16; CHECK-INST: neg r1
17; CHECK-INST: neg r22
18; CHECK-INST: neg r31
19