Project

General

Profile

Actions

Bug #5514

closed

The implementation of 'coerce' needs a review

Added by Andrei Tatarnikov about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
High
Assignee:
Andrei Tatarnikov
Category:
-
Target version:
Start date:
12/19/2014
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
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)/

Actions #1

Updated by Alexander Kamkin about 9 years ago

  • 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
Actions #2

Updated by Alexander Kamkin about 9 years ago

  • Category changed from ISA Simulator to 90
Actions #3

Updated by Alexander Kamkin almost 9 years ago

  • Target version changed from 2.1 to 2.2
Actions #4

Updated by Andrei Tatarnikov over 8 years ago

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

See r4613 and r4638.

Implementation was reviewed:

  1. Currently, coercion is supported for INT, CARD and BOOLEAN. For all other types an exception is raised.
  2. 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.

Actions #5

Updated by Andrei Tatarnikov over 8 years ago

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

Also available in: Atom PDF