[Mlir-commits] [mlir] 0a09f64 - [mlir] Fix test after 2d4e856

Christian Sigg llvmlistbot at llvm.org
Fri Apr 14 08:05:27 PDT 2023


Author: Christian Sigg
Date: 2023-04-14T17:04:14+02:00
New Revision: 0a09f64e991387cef0ac84691c723d3aba6a09d8

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

LOG: [mlir] Fix test after 2d4e856

The test CHECKs for `-nan`, but printing the sign is optional.

This change removes the sign because it has no meaning.

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 b72f9ba8fd25..16a239ea735c 100644
--- a/mlir/test/mlir-cpu-runner/test-expand-math-approx.mlir
+++ b/mlir/test/mlir-cpu-runner/test-expand-math-approx.mlir
@@ -115,7 +115,7 @@ func.func @powf() {
   %a_p = arith.constant 2.0 : f64
   call @func_powff64(%a, %a_p) : (f64, f64) -> ()
 
-  // CHECK: -nan
+  // CHECK: nan
   %b   = arith.constant -3.0 : f64
   %b_p = arith.constant 3.0 : f64
   call @func_powff64(%b, %b_p) : (f64, f64) -> ()
@@ -140,7 +140,7 @@ func.func @powf() {
   %f_p  = arith.constant 1.2 : f64
   call @func_powff64(%f, %f_p) : (f64, f64) -> ()
 
-  // CHECK: -nan
+  // CHECK: nan
   %g    = arith.constant 0xff80000000000000 : f64
   call @func_powff64(%g, %g) : (f64, f64) -> ()
 


        


More information about the Mlir-commits mailing list