From ea8deef8d9215cad0dac0f6755ab5c3b637b148c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20M=C3=BCller?= Date: Tue, 7 Mar 2023 13:56:23 +0000 Subject: [PATCH] [mlir][complex] Minor fixes in ComplexToStandard test cases. One FileCheck line was hard-coding variable names. Another line mis-indented the second line of a function header. Reviewed By: akuegel Differential Revision: https://reviews.llvm.org/D145498 --- mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir b/mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir index 640cac1..5e8986a 100644 --- a/mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir +++ b/mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir @@ -467,7 +467,7 @@ func.func @complex_sign(%arg: complex) -> complex { // CHECK: %[[IMAG:.*]] = complex.im %[[ARG]] : complex // CHECK: %[[ZERO:.*]] = arith.constant 0.000000e+00 : f32 // CHECK: %[[REAL_IS_ZERO:.*]] = arith.cmpf oeq, %[[REAL]], %[[ZERO]] : f32 -// CHECK: %[[IMAG_IS_ZERO:.*]] = arith.cmpf oeq, %1, %cst : f32 +// CHECK: %[[IMAG_IS_ZERO:.*]] = arith.cmpf oeq, %[[IMAG]], %[[ZERO]] : f32 // CHECK: %[[IS_ZERO:.*]] = arith.andi %[[REAL_IS_ZERO]], %[[IMAG_IS_ZERO]] : i1 // CHECK: %[[REAL2:.*]] = complex.re %[[ARG]] : complex // CHECK: %[[IMAG2:.*]] = complex.im %[[ARG]] : complex @@ -682,7 +682,7 @@ func.func @complex_conj(%arg: complex) -> complex { // CHECK-LABEL: func.func @complex_pow func.func @complex_pow(%lhs: complex, - %rhs: complex) -> complex { + %rhs: complex) -> complex { %pow = complex.pow %lhs, %rhs : complex return %pow : complex } -- 2.7.4