mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
41400da31e
2. Parsing .word directive in MBlaze asm parser 3. Fixing hack where memory instructions reversed order of last two parameters 4. Fixing many improperly encoded instructions 5. Support parsing special instructions (MFS,MTS,etc.) 6. Removing unused functions from inst printer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118941 91177308-0d34-0410-b5e6-96231b3b80d8
48 lines
1.4 KiB
ArmAsm
48 lines
1.4 KiB
ArmAsm
# RUN: llvm-mc -triple mblaze-unknown-unknown -show-encoding %s | FileCheck %s
|
|
|
|
# Test to ensure that all FPU instructions can be parsed by the
|
|
# assembly parser correctly.
|
|
|
|
# TYPE A: OPCODE RD RA RB FLAGS
|
|
# BINARY: 011011 00000 00000 00000 00000000000
|
|
|
|
# CHECK: mfs
|
|
# BINARY: 100101 00000 00000 10000 00000000000
|
|
# CHECK: encoding: [0x94,0x00,0x80,0x00]
|
|
mfs r0, 0x0
|
|
|
|
# CHECK: msrclr
|
|
# BINARY: 100101 00000 100010 000000000000000
|
|
# CHECK: encoding: [0x94,0x11,0x00,0x00]
|
|
msrclr r0, 0x0
|
|
|
|
# CHECK: msrset
|
|
# BINARY: 100101 00000 100000 000000000000000
|
|
# CHECK: encoding: [0x94,0x10,0x00,0x00]
|
|
msrset r0, 0x0
|
|
|
|
# CHECK: mts
|
|
# BINARY: 100101 00000 00000 11 00000000000000
|
|
# CHECK: encoding: [0x94,0x00,0xc0,0x00]
|
|
mts 0x0 , r0
|
|
|
|
# CHECK: wdc
|
|
# BINARY: 100100 00000 00000 00001 00001100100
|
|
# CHECK: encoding: [0x90,0x00,0x08,0x64]
|
|
wdc r0, r1
|
|
|
|
# CHECK: wdc.clear
|
|
# BINARY: 100100 00000 00000 00001 00001100110
|
|
# CHECK: encoding: [0x90,0x00,0x08,0x66]
|
|
wdc.clear r0, r1
|
|
|
|
# CHECK: wdc.flush
|
|
# BINARY: 100100 00000 00000 00001 00001110100
|
|
# CHECK: encoding: [0x90,0x00,0x08,0x74]
|
|
wdc.flush r0, r1
|
|
|
|
# CHECK: wic
|
|
# BINARY: 100100 00000 00000 00001 00001101000
|
|
# CHECK: encoding: [0x90,0x00,0x08,0x68]
|
|
wic r0, r1
|