[Mlir-commits] [mlir] 0a17692 - [MLIR] Reduce precision check for expm1 folder: this is dependent on libm (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Aug 1 14:26:57 PDT 2022


Author: Mehdi Amini
Date: 2022-08-01T21:26:51Z
New Revision: 0a1769214890eabf0e4edaaf8b1c251bf92f60f2

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

LOG: [MLIR] Reduce precision check for expm1 folder: this is dependent on libm (NFC)

We noticed this failing depending on the platform, checking the last few
digit isn't necessary for this test anyway.

Added: 
    

Modified: 
    mlir/test/Dialect/Math/canonicalize.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/Dialect/Math/canonicalize.mlir b/mlir/test/Dialect/Math/canonicalize.mlir
index 1a2c01699e944..dfd1e5748e5c2 100644
--- a/mlir/test/Dialect/Math/canonicalize.mlir
+++ b/mlir/test/Dialect/Math/canonicalize.mlir
@@ -275,7 +275,7 @@ func.func @expm1_fold() -> f32 {
 }
 
 // CHECK-LABEL: @expm1_fold_vec
-// CHECK-NEXT: %[[cst:.+]] = arith.constant dense<[0.000000e+00, 1.71828175, 0.000000e+00, 1.71828175]> : vector<4xf32>
+// CHECK-NEXT: %[[cst:.+]] = arith.constant dense<[0.000000e+00, 1.71828{{[0-9]*}}, 0.000000e+00, 1.71828{{[0-9]*}}]> : vector<4xf32>
 // CHECK-NEXT:   return %[[cst]]
 func.func @expm1_fold_vec() -> (vector<4xf32>) {
   %v1 = arith.constant dense<[0.0, 1.0, 0.0, 1.0]> : vector<4xf32>


        


More information about the Mlir-commits mailing list