1; RUN: llvm-mc -triple avr -mattr=elpm,elpmx -show-encoding < %s | FileCheck %s
2; RUN: llvm-mc -filetype=obj -triple avr -mattr=elpm,elpmx < %s | llvm-objdump -d --mattr=elpm,elpmx - | FileCheck -check-prefix=CHECK-INST %s
3
4
5foo:
6
7  elpm
8
9  elpm r3,  Z
10  elpm r23, Z
11
12  elpm r8, Z+
13  elpm r0, Z+
14
15; CHECK: elpm                  ; encoding: [0xd8,0x95]
16
17; CHECK: elpm r3,  Z           ; encoding: [0x36,0x90]
18; CHECK: elpm r23, Z           ; encoding: [0x76,0x91]
19
20; CHECK: elpm r8, Z+           ; encoding: [0x87,0x90]
21; CHECK: elpm r0, Z+           ; encoding: [0x07,0x90]
22
23; CHECK-INST: elpm
24
25; CHECK-INST: elpm r3,  Z
26; CHECK-INST: elpm r23, Z
27
28; CHECK-INST: elpm r8, Z+
29; CHECK-INST: elpm r0, Z+
30