Bug 2620 - sprintf("%x") fails on IA64
: sprintf("%x") fails on IA64
Status: RESOLVED FIXED
: Pike
Core
: 7.3
: Other Linux
: P3 (normal) normal
: ---
Assigned To:
:
:
: 2589
  Show dependency treegraph
 
Reported: 2001-12-14 08:17 CET by
Modified: 2002-01-18 05:50 CET (History)
Scrum Prio:
In scrum?: ---
Story included in sprints:
Unplanned in sprints:


Attachments


Description From 2001-12-14 08:17:44 CET
modules/sprintf/module_testsuite: Test 44 (shift 2) failed.
  1: mixed a() { return  sprintf("%x", -0x80000000) ; }
  2: mixed b() { return "-80000000"; }
o->a(): "-ffffffff80000000"
o->b(): "-80000000"
------- Comment #1 From 2001-12-14 11:00:15 CET -------
Hmm, looks like it's most likely due to a bug in gcc/ia64.
------- Comment #2 From 2001-12-14 11:01:05 CET -------
Potential fix in Pike 7.3.
Please verify.
------- Comment #3 From 2001-12-14 15:27:39 CET -------
No, that doesn't fix the problem. The problem exists on urd as well btw.
------- Comment #4 From 2002-01-02 03:11:37 CET -------
In optimize_sprintf int2hex gets called to make the hex value instead (is that
really faster anyway?), and it is there the real problem is.

Pike v7.3 release 13 running Hilfe v2.0 (Incremental Pike Frontend)
> int2hex(-0x80000000);
Result: "-ffffffff80000000"

Note

You need to log in before you can comment on or make changes to this bug.