1; RUN: llvm-mc -triple avr -mattr=rmw -show-encoding < %s | FileCheck %s
2
3
4foo:
5
6  xch Z, r13
7  xch Z, r0
8  xch Z, r31
9  xch Z, r3
10
11; CHECK: xch Z, r13                  ; encoding: [0xd4,0x92]
12; CHECK: xch Z, r0                   ; encoding: [0x04,0x92]
13; CHECK: xch Z, r31                  ; encoding: [0xf4,0x93]
14; CHECK: xch Z, r3                   ; encoding: [0x34,0x92]
15