Stage2 can't negate a NaN at runtime #11853
Labels
backend-llvm
The LLVM backend outputs an LLVM IR Module.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
In the AIR negation is implemented as
0 - val
which means that a NaN cannot be negated using the-
operator. I'm not sure how desirable negative NaNs are but the behavior should be consistent at comptime and runtime.The text was updated successfully, but these errors were encountered: