Bug #5514
closed
The implementation of 'coerce' needs a review
Added by Andrei Tatarnikov almost 10 years ago.
Updated over 9 years ago.
Assignee:
Andrei Tatarnikov
Published in build:
2.2.14
Description
The implementation is very simple: size is changed, extra bits are set to zero.
Sign extension is not supported, which causes bugs. Also, conversion from different data type families (e.g float to integer is not supported)/
- Subject changed from [model]The implementation of 'coerce' needs a review to The implementation of 'coerce' needs a review
- Category set to ISA Simulator
- Target version set to 2.1
- Category changed from ISA Simulator to 90
- Target version changed from 2.1 to 2.2
- Status changed from New to Resolved
- % Done changed from 0 to 100
See r4613 and r4638.
Implementation was reviewed:
- Currently, coercion is supported for INT, CARD and BOOLEAN. For all other types an exception is raised.
- Sign extension is done on coercion to INT (signed integer). In all other cases, zero extension is performed.
Support for other types will be implemented when we face such a need.
- Status changed from Resolved to Closed
- Published in build set to 2.2.14
Also available in: Atom
PDF