-
-
Notifications
You must be signed in to change notification settings - Fork 15k
powf for NaN returns 1 #60468
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The
powffor floating point numbers seems to have optimization: when base is 1, always return 1. This optimization does not check if exponent is a number, soThis behavior is same for debug and release modes, f32 and f64. playground