-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
backend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Description
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.
test {
std.debug.print("{d}\n", .{-math.nan(f32)}); // nan
std.debug.print("{d}\n", .{-comptime math.nan(f32)}); // -nan
}Metadata
Metadata
Assignees
Labels
backend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.