[Mlir-commits] [mlir] c6c7afd - [mlir][math] fix rsqrt test to not check sign of NaN

Matthias Gehre llvmlistbot at llvm.org
Mon May 13 02:20:41 PDT 2024


Author: Matthias Gehre
Date: 2024-05-13T11:20:27+02:00
New Revision: c6c7afd21edd0d16ebda916ea4939949e4e0fa8e

URL: https://github.com/llvm/llvm-project/commit/c6c7afd21edd0d16ebda916ea4939949e4e0fa8e
DIFF: https://github.com/llvm/llvm-project/commit/c6c7afd21edd0d16ebda916ea4939949e4e0fa8e.diff

LOG: [mlir][math] fix rsqrt test to not check sign of NaN

Hotfix for "[mlir][math] lower rsqrt to sqrt + fdiv (#91344)"

Added: 
    

Modified: 
    mlir/test/mlir-cpu-runner/test-expand-math-approx.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/mlir-cpu-runner/test-expand-math-approx.mlir b/mlir/test/mlir-cpu-runner/test-expand-math-approx.mlir
index 9b929b3c864dc..80d559cc6f730 100644
--- a/mlir/test/mlir-cpu-runner/test-expand-math-approx.mlir
+++ b/mlir/test/mlir-cpu-runner/test-expand-math-approx.mlir
@@ -862,7 +862,7 @@ func.func @rsqrt() {
   %cst2 = arith.constant 0.0 : f32
   call @rsqrt_f32(%cst2) : (f32) -> ()
 
-  // CHECK: -nan
+  // CHECK: nan
   %cst3 = arith.constant -1.0 : f32
   call @rsqrt_f32(%cst3) : (f32) -> ()
 


        


More information about the Mlir-commits mailing list