Add RISC-V encodings for copy instructions.

This commit is contained in:
Jakob Stoklund Olesen
2017-06-14 15:36:25 -07:00
parent 96f1228211
commit 3e1e2b6e5e
4 changed files with 25 additions and 1 deletions

View File

@@ -113,6 +113,9 @@ Iicmp = EncRecipe(
# The variable return values are not encoded.
Iret = EncRecipe('Iret', MultiAry, size=4, ins=(), outs=())
# Copy of a GPR is implemented as addi x, 0.
Icopy = EncRecipe('Icopy', Unary, size=4, ins=GPR, outs=GPR)
# U-type instructions have a 20-bit immediate that targets bits 12-31.
U = EncRecipe(
'U', UnaryImm, size=4, ins=(), outs=GPR,