Closed Bug 478197 Opened 16 years ago Closed 16 years ago

[interpreter] int increment/decrement operators buggy

Categories

(Tamarin Graveyard :: Virtual Machine, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

VERIFIED WORKSFORME
flash10.1

People

(Reporter: lhansen, Assigned: lhansen)

Details

Attachments

(1 file, 2 obsolete files)

If the representation of the number is a double they add/subtract 1.0 and go on their merry way, but they should truncate.
Attached patch patch (obsolete) — Splinter Review
The patch is considered preliminary. It needs a test case, which needs to be constructed with the assembler to be somewhat reliable.
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Blocks: 478870
Attached file Test case (obsolete) —
Requires a simple harness that I'm not including here. Run with -Dinterp to show that it's not working in the interpreter. (The test case also demonstrates that the offered patch is not correct.)
Attachment #361973 - Attachment is obsolete: true
Attached file Test case v2
Proper test cases for both increment and decrement that fit into the assembler test harness. The change to the 'I' tests splits those tests so that they can be run both interpreted and jitted (the jitter would fail on the existing tests because the function was too large).
Attachment #363316 - Attachment is obsolete: true
Ed, the decrement_i and declocal_i tests fail in the jit too, maybe you want to take a look at the test cases to make sure I've not done something silly.
decrement_i is squirrely -- I've queued a buildbot run that has decrement_i tests enabled. I'll report results.
[th reminds self to use ISO English] decrement_i yields inconsistent results on different platforms.
Blocks: 481483
No longer blocks: 478870
Blocks: 481413
No longer blocks: 481483
No longer blocks: 481413
Target Milestone: --- → flash10.x
Priority: -- → P2
The increment problem has gone away. The test cases for decrement were incorrect.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: