Bug #5976
closed
Shifted bit vector should be of the same size that was a source one
Added by Mikhail Chupilko over 9 years ago.
Updated over 9 years ago.
Assignee:
Andrei Tatarnikov
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!
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())));
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Verified
- % Done changed from 100 to 0
- % Done changed from 0 to 100
- Status changed from Verified to Closed
- Published in build set to 150522
Also available in: Atom
PDF