1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/MC/AVR/inst-subi.s
Dylan McKay 6faa0c3ed4 [AVR] Add all of the machine code test suite
Summary: This adds all of the AVR machine code tests.

Reviewers: arsenm, kparzysz

Subscribers: wdng, japaric

Differential Revision: https://reviews.llvm.org/D26387

llvm-svn: 286417
2016-11-09 23:46:25 +00:00

19 lines
584 B
ArmAsm

; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
foo:
subi r22, 82
subi r27, 39
subi r31, 244
subi r16, 144
subi r20, EXTERN_SYMBOL+0
; CHECK: subi r22, 82 ; encoding: [0x62,0x55]
; CHECK: subi r27, 39 ; encoding: [0xb7,0x52]
; CHECK: subi r31, 244 ; encoding: [0xf4,0x5f]
; CHECK: subi r16, 144 ; encoding: [0x00,0x59]
; CHECK: subi r20, EXTERN_SYMBOL+0 ; encoding: [0x40'A',0x50]
; CHECK: ; fixup A - offset: 0, value: EXTERN_SYMBOL+0, kind: fixup_ldi