rizin/test/db/cmd/cmd_json
aemmitt-ns ec173d40d6
ESIL signedness and other extensions ##esil (#17436)
* fix typo in anal_arm esil (does not affect esil execution)
* add af flag setting and sof op for sub overflow, change borrow
* remove the break that was 'breaking' everything, fix warning
* add new sign extension operator and use it to handle signedness in imul
* work on expressions for idiv, div, imul, mul, remove  and just modify sub/cmp
* add clz and reorder the sign extension arguments to be in line with all other ops
* add support for many arm64 instructions
* add sign extension to all ldr*s instructions
* make numerous changes to fix REV*, SXT*, LSL, LSR, ASR, SDIV, MOVN and others, to be detailed in PR
* add sxt* to shifted_register_append, use it to fix opcall and ldr / str
* remove unnecessary commented code
* add some comments
* add clz and reorder the sign extension arguments to be in line with all other ops
* add sign extension to all ldr*s instructions
* make numerous changes to fix REV*, SXT*, LSL, LSR, ASR, SDIV, MOVN and others, to be detailed in PR
* add sxt* to shifted_register_append, use it to fix opcall and ldr / str
* fix wrong type check in esil_signext
* change borrow flag back to the way it was
* add example comment to esil_signext
* unbreak movk
* format mask in sub, cmp, and movk as hex
* add test for esil signext operator
* use ULL instead of (ut64) cast in shifts
2020-09-02 00:03:24 +02:00

53 lines
854 B
Text

NAME=test pDj missing newline issue
FILE=-
CMDS=<<EOF
e asm.arch=x86
e asm.bits=64
wx 4883c768
pDj 4~{}
EOF
EXPECT=<<EOF
[
{
"offset": 0,
"ptr": 104,
"val": 104,
"esil": "104,rdi,+=,63,$o,of,:=,63,$s,sf,:=,$z,zf,:=,63,$c,cf,:=,$p,pf,:=,3,$c,af,:=",
"refptr": false,
"fcn_addr": 0,
"fcn_last": 0,
"size": 4,
"opcode": "add rdi, 0x68",
"disasm": "add rdi, 0x68",
"bytes": "4883c768",
"family": "cpu",
"type": "add",
"reloc": false,
"type_num": 17,
"type2_num": 0
}
]
EOF
RUN
NAME=/j with backslash
FILE=bins/pe/ConsoleApplication1.exe
CMDS=/j ConsoleApplication1.pdb~{}
EXPECT=<<EOF
[
{
"offset": 4203952,
"type": "string",
"data": "cation1\\Release\\ConsoleApplication1.pdb "
}
]
EOF
RUN
NAME=empty irj should print empty array
FILE=-
CMDS=irj
EXPECT=<<EOF
[]
EOF
RUN