[Mono-bugs] [Bug 44293][Nor] New - Math.Tan produces incorrect results with --optimize=intrins

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 7 Jun 2003 13:58:17 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz@freemail.hu.

http://bugzilla.ximian.com/show_bug.cgi?id=44293

--- shadow/44293	Sat Jun  7 13:58:17 2003
+++ shadow/44293.tmp.1212	Sat Jun  7 13:58:17 2003
@@ -0,0 +1,36 @@
+Bug#: 44293
+Product: Mono/Runtime
+Version: unspecified
+OS: Debian Potato
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Math.Tan produces incorrect results with --optimize=intrins
+
+The following program produces incorrect results on current Mono CVS.
+When running it with --optimize=-intrins, it runs fine.
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+
+class Bug {
+
+	public static void Main () {
+		Console.WriteLine (Math.Tan (-0.0));
+
+		Console.WriteLine (Math.Tan (0.0));
+
+		Console.WriteLine (Math.Tan (Math.PI / 2.0 + Math.PI / 6.0));
+
+		Console.WriteLine (Math.Atan (-0.0));
+	}
+}
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<