NAME=RISC-V ESIL for arithmetic word instructions
FILE=malloc://1024
CMDS=<<EOF
e asm.arch=riscv
e asm.bits=64
wx 1304500093083000139ff8013308e4413b071801bb030703
aei
6aes
ar a6
ar t2
EOF
EXPECT=<<EOF
a6 = 0xfffffffe80000005
t2 = 0xffffffff80000028
EOF
RUN

NAME=RISC-V ESIL for shift word instructions
FILE=malloc://1024
CMDS=<<EOF
e asm.arch=riscv
e asm.bits=64
wx e5267d76359ebb15d6003b57d600bb07b740
aei
6aes
ar a5
EOF
EXPECT=<<EOF
a5 = 0xffffffffce00007f
EOF
RUN

NAME=RISC-V ESIL for load instructions
FILE=malloc://1024
CMDS=<<EOF
e asm.arch=riscv
e asm.bits=64
wx 37f65aff32e09246036701008317210003081100
aei
aeim
6aes
ar a3
ar a4
ar a5
ar a6
EOF
EXPECT=<<EOF
a3 = 0xffffffffffffffff
a4 = 0x00000000ff5af000
a5 = 0xffffffffffffff5a
a6 = 0xfffffffffffffff0
EOF
RUN

NAME=RISC-V ESIL for compressed word instructions
FILE=malloc://1024
CMDS=<<EOF
e asm.arch=riscv
e asm.bits=64
wx 7d76518f1d26319e119f
aei
aeim
5aes
ar a4
EOF
EXPECT=<<EOF
a4 = 0x0000000000000ff2
EOF
RUN