; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s ; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -d - | FileCheck --check-prefix=CHECK-INST %s foo: ser r16 ser r31 ser r27 ser r31 ; CHECK: ldi r16, 255 ; encoding: [0x0f,0xef] ; CHECK: ldi r31, 255 ; encoding: [0xff,0xef] ; CHECK: ldi r27, 255 ; encoding: [0xbf,0xef] ; CHECK: ldi r31, 255 ; encoding: [0xff,0xef] ; CHECK-INST: ldi r16, 255 ; CHECK-INST: ldi r31, 255 ; CHECK-INST: ldi r27, 255 ; CHECK-INST: ldi r31, 255