Closed
Description
If the value cannot fit within the destination type, ty2, then the results are undefined.
http://llvm.org/docs/LangRef.html#fptrunc-to-instruction
e.g. 1e300f64 as f32
Metadata
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generationCategory: This is a bug.Medium priorityRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.