Actions
Task #5721
closedBug #5717: Usage of regs as operation parameters
Usage of register indexes in operation action block call
Start date:
03/18/2015
Due date:
% Done:
0%
Estimated time:
Detected in build:
2.1.5-beta-150305
Published in build:
2.4.14
Description
Writing a register index like in the example below causes an exception
subs(REG(31), rn, imm12, shift_flag).action;
java.lang.IllegalArgumentException: Assigning 8-bit data to 5-bit location.
Right now the only way to prescribe the index is to coerce it to the properly card.
subs(REG(coerce(card(5), 31)), rn, imm12, shift_flag).action;
It seems to require fixing.
Actions