Fix MLIR Python test after 9fbe3b511bf703d0d
authorMehdi Amini <joker.eph@gmail.com>
Wed, 3 May 2023 05:30:02 +0000 (22:30 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 3 May 2023 05:30:37 +0000 (22:30 -0700)
Some mid-air collision between a change in the generic format and this
new python test.

mlir/test/python/dialects/tensor.py

index 6c85dd1..b0ad4b4 100644 (file)
@@ -110,10 +110,12 @@ def testFromElementsOp():
       @func.FuncOp.from_py_func()
       def default_builder():
         c0 = arith.ConstantOp(f32, 0.0)
-        # CHECK: %[[C0:.*]] = "arith.constant"() {value = 0.000000e+00 : f32} : () -> f32
+        # CHECK: %[[C0:.*]] = "arith.constant
+        # CHECK-SAME: value = 0.000000e+00 : f32
         print(c0)
         c1 = arith.ConstantOp(f32, 1.0)
-        # CHECK: %[[C1:.*]] = "arith.constant"() {value = 1.000000e+00 : f32} : () -> f32
+        # CHECK: %[[C1:.*]] = "arith.constant
+        # CHECK-SAME: value = 1.000000e+00 : f32
         print(c1)
 
         t = tensor.FromElementsOp(RankedTensorType.get((2,), f32), [c0, c1])