1; RUN: llvm-mc -triple avr -mattr=elpm,elpmx -show-encoding < %s | FileCheck %s
2
3
4foo:
5
6  elpm
7
8  elpm r3,  Z
9  elpm r23, Z
10
11  elpm r8, Z+
12  elpm r0, Z+
13
14; CHECK: elpm                  ; encoding: [0xd8,0x95]
15
16; CHECK: elpm r3,  Z           ; encoding: [0x36,0x90]
17; CHECK: elpm r23, Z           ; encoding: [0x76,0x91]
18
19; CHECK: elpm r8, Z+           ; encoding: [0x87,0x90]
20; CHECK: elpm r0, Z+           ; encoding: [0x07,0x90]
21