Closed
Description
Currently, the LangRef does not specify the results of basic floating-point operations (fadd
, fsub
, fmul
, fdiv
) in any detail. APFloat uses IEEE 754 semantics, but the LangRef does not guarantee it. What guarantees are there about the behavior of floating-point code? If IEEE 754 is the intended model, then x87 codegen is completely broken and probably other targets are as well. If not IEEE 754, then what is the intended model?