From: SourceForge.net <no...@so...> - 2007-01-25 14:24:53
|
Bugs item #1644460, was opened at 2007-01-26 01:24 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=712768&aid=1644460&group_id=128805 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: optimizing compiler Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Robin Garner (rgarner) Assigned to: Nobody/Anonymous (nobody) Summary: DaCapo lusearch fails when opt compiled Initial Comment: DaCapo lusearch fails to validate when compiled with the opt compiler. lusearch queries a corpus of documents, and results are sorted by relevance (a float) and a document serial number. The comparison returns different results under baseline (correct) and opt compilers (incorrect). public class LusearchBug { public static float b = 0.009765625f; public static float a = 10.57379f; /** * @param args */ public static void main(String[] args) { float c = a * b; System.out.println(c == 0.10325967f); } } rvm -X:aos:initial_compiler=base LusearchBug true rvm -X:aos:initial_compiler=opt LusearchBug false ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=712768&aid=1644460&group_id=128805 |