radare2/test/db/cmd/cmd_pae
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

27 lines
410 B
Plaintext

NAME=capstone pade 31ed
FILE=-
ARGS=-a x86 -b 32
CMDS=pade 31ed
EXPECT=<<EOF
ebp,ebp,^=,$z,zf,:=,$p,pf,:=,31,$s,sf,:=,0,cf,:=,0,of,:=
EOF
RUN
NAME=pade 40
FILE=-
ARGS=-a x86 -b 32
CMDS=pade 40
EXPECT=<<EOF
eax,++=,31,$o,of,:=,31,$s,sf,:=,$z,zf,:=,$p,pf,:=,3,$c,af,:=
EOF
RUN
NAME=pade 48
FILE=-
ARGS=-a x86 -b 32
CMDS=pade 48
EXPECT=<<EOF
eax,--=,31,$o,of,:=,31,$s,sf,:=,$z,zf,:=,$p,pf,:=,3,$b,af,:=
EOF
RUN