[Mlir-commits] [mlir] abcf149 - Fix complex.conj integration test
Benjamin Kramer
llvmlistbot at llvm.org
Thu Jun 9 04:11:38 PDT 2022
Author: Benjamin Kramer
Date: 2022-06-09T13:11:10+02:00
New Revision: abcf1496ad21d1b9b60527c8ced2bd5448e573f5
URL: https://github.com/llvm/llvm-project/commit/abcf1496ad21d1b9b60527c8ced2bd5448e573f5
DIFF: https://github.com/llvm/llvm-project/commit/abcf1496ad21d1b9b60527c8ced2bd5448e573f5.diff
LOG: Fix complex.conj integration test
- It doesn't actually print the fractional part if the result is a whole number
- One of the expectations was just wrong
Added:
Modified:
mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
Removed:
################################################################################
diff --git a/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir b/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
index 5f7940b9da28..e2df73ed3c9b 100644
--- a/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
+++ b/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
@@ -224,26 +224,26 @@ func.func @entry() {
// complex.conj test
%conj_test = arith.constant dense<[
(-1.0, -1.0),
- // CHECK: -1.0
- // CHECK-NEXT: 1.0
+ // CHECK: -1
+ // CHECK-NEXT: 1
(-1.0, 1.0),
- // CHECK-NEXT: -1.0
- // CHECK-NEXT: -1.0
+ // CHECK-NEXT: -1
+ // CHECK-NEXT: -1
(0.0, 0.0),
// CHECK-NEXT: 0
// CHECK-NEXT: 0
(0.0, 1.0),
// CHECK-NEXT: 0
- // CHECK-NEXT: -1.0
+ // CHECK-NEXT: -1
(1.0, -1.0),
- // CHECK-NEXT: 1.0
- // CHECK-NEXT: -1.0
+ // CHECK-NEXT: 1
+ // CHECK-NEXT: 1
(1.0, 0.0),
- // CHECK-NEXT: 1.0
+ // CHECK-NEXT: 1
// CHECK-NEXT: 0
(1.0, 1.0)
- // CHECK-NEXT: 1.0
- // CHECK-NEXT: -1.0
+ // CHECK-NEXT: 1
+ // CHECK-NEXT: -1
]> : tensor<7xcomplex<f32>>
%conj_test_cast = tensor.cast %conj_test
: tensor<7xcomplex<f32>> to tensor<?xcomplex<f32>>
More information about the Mlir-commits
mailing list