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:
|
|
|
|
|
|
|
|
com r30
|
|
|
|
com r17
|
|
|
|
com r4
|
|
|
|
com r0
|
|
|
|
|
|
|
|
; CHECK: com r30 ; encoding: [0xe0,0x95]
|
|
|
|
; CHECK: com r17 ; encoding: [0x10,0x95]
|
|
|
|
; CHECK: com r4 ; encoding: [0x40,0x94]
|
|
|
|
; CHECK: com r0 ; encoding: [0x00,0x94]
|
2020-06-17 04:50:29 +08:00
|
|
|
|
|
|
|
; CHECK-INST: com r30
|
|
|
|
; CHECK-INST: com r17
|
|
|
|
; CHECK-INST: com r4
|
|
|
|
; CHECK-INST: com r0
|