Project

General

Profile

Actions

Task #5721

closed

Bug #5717: Usage of regs as operation parameters

Usage of register indexes in operation action block call

Added by Mikhail Chupilko over 9 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Andrei Tatarnikov
Category:
nML Translator
Target version:
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

Also available in: Atom PDF