[mlir] Fix test after 2d4e856
authorChristian Sigg <csigg@google.com>
Fri, 14 Apr 2023 15:04:14 +0000 (17:04 +0200)
committerChristian Sigg <csigg@google.com>
Fri, 14 Apr 2023 15:04:14 +0000 (17:04 +0200)
The test CHECKs for `-nan`, but printing the sign is optional.

This change removes the sign because it has no meaning.

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

index b72f9ba..16a239e 100644 (file)
@@ -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) -> ()