2016-11-10 07:46:25 +08:00
|
|
|
; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
|
2020-06-17 04:50:29 +08:00
|
|
|
; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -d - | FileCheck -check-prefix=CHECK-INST %s
|
2016-11-10 07:46:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
foo:
|
|
|
|
|
|
|
|
lsr r31
|
|
|
|
lsr r25
|
|
|
|
lsr r5
|
|
|
|
lsr r0
|
|
|
|
|
|
|
|
; CHECK: lsr r31 ; encoding: [0xf6,0x95]
|
|
|
|
; CHECK: lsr r25 ; encoding: [0x96,0x95]
|
|
|
|
; CHECK: lsr r5 ; encoding: [0x56,0x94]
|
|
|
|
; CHECK: lsr r0 ; encoding: [0x06,0x94]
|
2020-06-17 04:50:29 +08:00
|
|
|
|
|
|
|
; CHECK-INST: lsr r31
|
|
|
|
; CHECK-INST: lsr r25
|
|
|
|
; CHECK-INST: lsr r5
|
|
|
|
; CHECK-INST: lsr r0
|