| Summary: | IR for negative numbers done poorly or not at all | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Matt Heitz <mheitz> |
| Component: | EDT | Assignee: | Paul Harmon <pharmon> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | greer, mheitz |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Matt Heitz
After working more with IRs for numeric literals, I'm convinced that getValue() should include the sign for negative numbers. Matt, I agree -- otherwise, why have isNegated at all? If we keep and use isNegated, does that mean more work for the generators to handle expressions like "x - -3"; I assume not but wanted to confirm.... I have updated EGL2MofExpression so that the isNegated flag is correctly set for numeric literals FYI Scott: Paul added getUnsignedValue() to the NumericLiterals so we have lots of ways to get what we want without fiddling with the value ourselves. Verified. |