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 #1

Updated by Alexander Kamkin over 9 years ago

  • Target version changed from 2.1 to 2.2
Actions #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.

Actions #3

Updated by Andrei Tatarnikov over 7 years ago

  • Status changed from Resolved to Closed
  • Published in build set to 2.4.14
Actions

Also available in: Atom PDF