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.
Updated by Alexander Kamkin over 9 years ago
- Target version changed from 2.1 to 2.2
Updated by Andrei Tatarnikov over 7 years ago
- Status changed from New to Resolved
In current version (2.4.13), such constructs work fine. No explicit coercions are required.
Updated by Andrei Tatarnikov over 7 years ago
- Status changed from Resolved to Closed
- Published in build set to 2.4.14
Actions