mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-09 15:57:28 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138840 91177308-0d34-0410-b5e6-96231b3b80d8
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
# RUN: llvm-mc -triple=thumbv7-apple-darwin -disassemble < %s | FileCheck %s
|
|
|
|
#------------------------------------------------------------------------------
|
|
# ADC (immediate)
|
|
#------------------------------------------------------------------------------
|
|
# CHECK: adc r0, r1, #4
|
|
# CHECK: adcs r0, r1, #0
|
|
# CHECK: adc r1, r2, #255
|
|
# CHECK: adc r3, r7, #5570645
|
|
# CHECK: adc r8, r12, #2852170240
|
|
# CHECK: adc r9, r7, #2779096485
|
|
# CHECK: adc r5, r3, #2264924160
|
|
# CHECK: adc r4, r2, #2139095040
|
|
# CHECK: adc r4, r2, #1664
|
|
|
|
0x41 0xf1 0x04 0x00
|
|
0x51 0xf1 0x00 0x00
|
|
0x42 0xf1 0xff 0x01
|
|
0x47 0xf1 0x55 0x13
|
|
0x4c 0xf1 0xaa 0x28
|
|
0x47 0xf1 0xa5 0x39
|
|
0x43 0xf1 0x07 0x45
|
|
0x42 0xf1 0xff 0x44
|
|
0x42 0xf5 0xd0 0x64
|
|
|
|
#------------------------------------------------------------------------------
|
|
# IT
|
|
#------------------------------------------------------------------------------
|
|
# Test encodings of a few full IT blocks, not just the IT instruction
|
|
|
|
# CHECK: iteet eq
|
|
# CHECK: addeq r0, r1, r2
|
|
# CHECK: nopne
|
|
# CHECK: subne r5, r6, r7
|
|
# CHECK: addeq r1, r2, #4
|
|
|
|
0x0d 0xbf
|
|
0x88 0x18
|
|
0x00 0xbf
|
|
0xf5 0x1b
|
|
0x11 0x1d
|
|
|
|
# CHECK: ittee ls
|
|
# CHECK: addls r0, r1, r2
|
|
# CHECK: nopls
|
|
# CHECK: subhi r5, r6, r7
|
|
# CHECK: addhi r1, r2, #4
|
|
|
|
0x99 0xbf
|
|
0x88 0x18
|
|
0x00 0xbf
|
|
0xf5 0x1b
|
|
0x11 0x1d
|