Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong code generation for floating-point operations on x86 by ocamlopt #8174

Closed
vicuna opened this issue Jun 16, 2003 · 2 comments
Closed

Wrong code generation for floating-point operations on x86 by ocamlopt #8174

vicuna opened this issue Jun 16, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 16, 2003

Original bug ID: 1715
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Alexey Shchepin
Version: 3.06+34 (cvs version from 2003-06-15)
OS: Linux
Submission from: 62.32.54.41 (62.32.54.41)

Following program prints "4.000000" when compiled with ocamlc and "nan" when
compiled with ocamlopt:

let m = Array.make 10 2.0
let sq x = x *. x
let _ = Printf.printf "%f\n" (sq m.(1))

@vicuna
Copy link
Author

vicuna commented Jun 19, 2003

Comment author: administrator

Version: 3.06+34 (cvs version from 2003-06-15)

Following program prints "4.000000" when compiled with ocamlc and "nan" when
compiled with ocamlopt:

let m = Array.make 10 2.0
let sq x = x *. x
let _ = Printf.printf "%f\n" (sq m.(1))

This bug was fixed in the CVS archive shortly after you downloaded the
working sources. (Precisely at 10am on 2003-06-15.)

Thanks for the report,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jun 19, 2003

Comment author: administrator

Fixed 2003-06-15 by XL.

@vicuna vicuna closed this as completed Jun 19, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant