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
This commit is contained in:
Benjamin Kramer 2022-06-09 13:09:46 +02:00
parent 85983ca42e
commit abcf1496ad
1 changed files with 10 additions and 10 deletions

View File

@ -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>>