; RUN: llvm-mc -triple avr -mattr=sram -show-encoding < %s | FileCheck %s
; RUN: llvm-mc -filetype=obj -triple avr -mattr=sram < %s | llvm-objdump -dr --mattr=sram - | FileCheck -check-prefix=CHECK-INST %s
foo:
sts 3, r5
sts 255, r7
sts SYMBOL+1, r25
; CHECK: sts 3, r5 ; encoding:
; CHECK: sts 255, r7 ; encoding:
; CHECK: sts SYMBOL+1, r25 ; encoding:
; CHECK: ; fixup A - offset: 2, value: SYMBOL+1, kind: fixup_16
; CHECK-INST: sts 3, r5
; CHECK-INST: sts 255, r7
; CHECK-INST: sts 0, r25
; CHECK-INST: R_AVR_16 SYMBOL+0x1