Project

General

Profile

Actions

Bug #5976

closed

Shifted bit vector should be of the same size that was a source one

Added by Mikhail Chupilko almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Tatarnikov
Category:
nML Translator
Target version:
Start date:
05/22/2015
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
150522

Description

I have to write coerce explicitly:

wmask<1..0> = coerce(card(2), welem<1..0> >>> R)

rather that simply assign the shift result:
wmask<1..0> = welem<1..0> >>> R

Otherwise there would be an error: can't assign 32-bit value to a 2-bit field!

Actions #1

Updated by Mikhail Chupilko almost 9 years ago

Generated JAVA for the explicit coerce case

wmask.access().bitField(1, 0).store(DataEngine.coerce(Type.CARD(2), DataEngine.execute(EOperatorID.R_ROTATE,
  DataEngine.coerce(Type.CARD(32), welem.access().bitField(1, 0).load()), R.access().load())));

Actions #2

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed: r3683

Actions #3

Updated by Mikhail Chupilko almost 9 years ago

  • Status changed from Resolved to Verified
  • % Done changed from 100 to 0
Actions #4

Updated by Mikhail Chupilko almost 9 years ago

  • % Done changed from 0 to 100
Actions #5

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from Verified to Closed
  • Published in build set to 150522
Actions

Also available in: Atom PDF