Skip to content

Commit

Permalink
Add tests for it thumb instruction (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
Svenito authored and radare committed Nov 22, 2016
1 parent 8807d48 commit 4c2641e
Showing 1 changed file with 180 additions and 0 deletions.
180 changes: 180 additions & 0 deletions t.esil/arm-16
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,183 @@ EXPECT='0x00000033
'
run_test

NAME="it eq"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 08bf
aoe
'
EXPECT='0x0 zf,?{,6,pc,+=,}
'
run_test

NAME="it ne"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 18bf
aoe
'
EXPECT='0x0 zf,!,?{,6,pc,+=,}
'
run_test

NAME="it hs"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 28bf
aoe
'
EXPECT='0x0 cf,?{,6,pc,+=,}
'
run_test

NAME="it lo"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 38bf
aoe
'
EXPECT='0x0 cf,!,?{,6,pc,+=,}
'
run_test

NAME="it mi"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 48bf
aoe
'
EXPECT='0x0 nf,?{,6,pc,+=,}
'
run_test

NAME="it pl"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 58bf
aoe
'
EXPECT='0x0 nf,!,?{,6,pc,+=,}
'
run_test

NAME="it vs"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 68bf
aoe
'
EXPECT='0x0 vf,?{,6,pc,+=,}
'
run_test

NAME="it vc"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 78bf
aoe
'
EXPECT='0x0 vf,!,?{,6,pc,+=,}
'
run_test

NAME="it hi"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 88bf
aoe
'
EXPECT='0x0 cf,?{,zf,!,?{,6,pc,+=,},}
'
run_test

NAME="it ls"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx 98bf
aoe
'
EXPECT='0x0 cf,!,?{,zf,?{,6,pc,+=,},}
'
run_test


NAME="it ge"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx a8bf
aoe
'
EXPECT='0x0 nf,vf,==,!,?{,6,pc,+=,}
'
run_test

NAME="it lt"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx b8bf
aoe
'
EXPECT='0x0 nf,vf,!=,!,?{,6,pc,+=,}
'
run_test

NAME="it gt"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx c8bf
aoe
'
EXPECT='0x0 zf,!,?{,nf,vf,==?{,6,pc,+=,},}
'
run_test

NAME="it le"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx d8bf
aoe
'
EXPECT='0x0 zf,?{,nf,vf,!=?{,6,pc,+=,},}
'
run_test

NAME="it al"
FILE=malloc://0x200
CMDS='
e asm.arch=arm
e asm.bits=16
wx e8bf
aoe
'
EXPECT='0x0 6,pc,+=
'
run_test

0 comments on commit 4c2641e

Please sign in to comment.