rizin/test/db/analysis/sysz
2026-05-08 22:33:00 +08:00

93 lines
1.5 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": "r4"
},
{
"type": "mem",
"base": "r15",
"disp": 8
}
]
},
"addr": 0,
"bytes": "4140f008",
"size": 4,
"type": "null",
"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
e asm.bits=64
ar
EOF
EXPECT=<<EOF
pswm = 0x0000000000000000
pswa = 0x0000000000000000
r0 = 0x0000000000000000
r1 = 0x0000000000000000
r2 = 0x0000000000000000
r3 = 0x0000000000000000
r4 = 0x0000000000000000
r5 = 0x0000000000000000
r6 = 0x0000000000000000
r7 = 0x0000000000000000
r8 = 0x0000000000000000
r9 = 0x0000000000000000
r10 = 0x0000000000000000
r11 = 0x0000000000000000
r12 = 0x0000000000000000
r13 = 0x0000000000000000
r14 = 0x0000000000000000
r15 = 0x0000000000000000
acr0 = 0x00000000
acr1 = 0x00000000
acr2 = 0x00000000
acr3 = 0x00000000
acr4 = 0x00000000
acr5 = 0x00000000
acr6 = 0x00000000
acr7 = 0x00000000
acr8 = 0x00000000
acr9 = 0x00000000
acr10 = 0x00000000
acr11 = 0x00000000
acr12 = 0x00000000
acr13 = 0x00000000
acr14 = 0x00000000
acr15 = 0x00000000
orig_r2 = 0x0000000000000000
EOF
RUN