2016-11-10 00:46:25 +01:00
|
|
|
; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
|
2020-03-16 00:17:52 +01:00
|
|
|
; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -d - | FileCheck --check-prefix=CHECK-INST %s
|
2016-11-10 00:46:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
foo:
|
|
|
|
|
|
|
|
sbci r17, 21
|
|
|
|
sbci r23, 196
|
|
|
|
sbci r30, 244
|
|
|
|
sbci r19, 16
|
|
|
|
sbci r22, FOO
|
|
|
|
|
|
|
|
; CHECK: sbci r17, 21 ; encoding: [0x15,0x41]
|
|
|
|
; CHECK: sbci r23, 196 ; encoding: [0x74,0x4c]
|
|
|
|
; CHECK: sbci r30, 244 ; encoding: [0xe4,0x4f]
|
|
|
|
; CHECK: sbci r19, 16 ; encoding: [0x30,0x41]
|
|
|
|
|
|
|
|
; CHECK: sbci r22, FOO ; encoding: [0x60'A',0x40]
|
|
|
|
; CHECK: ; fixup A - offset: 0, value: FOO, kind: fixup_ldi
|
2020-02-05 12:53:06 +01:00
|
|
|
|
|
|
|
; CHECK-INST: sbci r17, 21
|
|
|
|
; CHECK-INST: sbci r23, 196
|
|
|
|
; CHECK-INST: sbci r30, 244
|
|
|
|
; CHECK-INST: sbci r19, 16
|
|
|
|
; CHECK-INST: sbci r22, 0
|