Refactored all plugins to use get_reg_profile instead, which simply returns the register profile instead of applying it as a side-effect.
81 lines
1.2 KiB
Text
81 lines
1.2 KiB
Text
NAME=aoj 4140f008
|
|
FILE==
|
|
CMDS=<<EOF
|
|
e asm.arch=sysz
|
|
e asm.bits=64
|
|
wx 4140f008
|
|
aoj~{}
|
|
EOF
|
|
EXPECT=<<EOF
|
|
[
|
|
{
|
|
"opcode": "la %r4, 8(%r15)",
|
|
"disasm": "la %r4, 8(%r15)",
|
|
"description": "Load Address",
|
|
"mnemonic": "la",
|
|
"mask": "ffffffff",
|
|
"sign": false,
|
|
"prefix": 0,
|
|
"id": 0,
|
|
"opex": {
|
|
"operands": [
|
|
{
|
|
"type": "reg",
|
|
"value": "4"
|
|
},
|
|
{
|
|
"type": "mem",
|
|
"base": "15",
|
|
"disp": 8
|
|
}
|
|
]
|
|
},
|
|
"addr": 0,
|
|
"bytes": "4140f008",
|
|
"size": 4,
|
|
"type": "null",
|
|
"esilcost": 0,
|
|
"scale": 0,
|
|
"refptr": 0,
|
|
"cycles": 0,
|
|
"failcycles": 0,
|
|
"delay": 0,
|
|
"stackptr": 0,
|
|
"family": "cpu"
|
|
}
|
|
]
|
|
EOF
|
|
RUN
|
|
|
|
NAME=sysz regs
|
|
FILE=
|
|
CMDS=<<EOF
|
|
e asm.arch=sysz
|
|
ar
|
|
EOF
|
|
EXPECT=<<EOF
|
|
sb = 0x00000000
|
|
sl = 0x00000000
|
|
fp = 0x00000000
|
|
ip = 0x00000000
|
|
sp = 0x00000000
|
|
lr = 0x00000000
|
|
pc = 0x00000000
|
|
r0 = 0x00000000
|
|
r1 = 0x00000000
|
|
r2 = 0x00000000
|
|
r3 = 0x00000000
|
|
r4 = 0x00000000
|
|
r5 = 0x00000000
|
|
r6 = 0x00000000
|
|
r7 = 0x00000000
|
|
r8 = 0x00000000
|
|
r9 = 0x00000000
|
|
r10 = 0x00000000
|
|
r11 = 0x00000000
|
|
r12 = 0x00000000
|
|
r13 = 0x00000000
|
|
r14 = 0x00000000
|
|
r15 = 0x00000000
|
|
EOF
|
|
RUN
|