; RUN: llvm-mc -triple avr -mattr=elpm,elpmx -show-encoding < %s | FileCheck %s
; RUN: llvm-mc -filetype=obj -triple avr -mattr=elpm,elpmx < %s | llvm-objdump -d --mattr=elpm,elpmx - | FileCheck -check-prefix=CHECK-INST %s
foo:
elpm
elpm r3, Z
elpm r23, Z
elpm r8, Z+
elpm r0, Z+
; CHECK: elpm ; encoding:
; CHECK: elpm r3, Z ; encoding:
; CHECK: elpm r23, Z ; encoding:
; CHECK: elpm r8, Z+ ; encoding:
; CHECK: elpm r0, Z+ ; encoding:
; CHECK-INST: elpm
; CHECK-INST: elpm r3, Z
; CHECK-INST: elpm r23, Z
; CHECK-INST: elpm r8, Z+
; CHECK-INST: elpm r0, Z+