Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
n-io committed Nov 2, 2024
1 parent bff7422 commit 84f6b11
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 40 deletions.
8 changes: 4 additions & 4 deletions tests/filecheck/dialects/arith/canonicalize.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func.func @test_const_const() {

// CHECK-LABEL: @test_const_const
// CHECK-NEXT: %0 = arith.constant 6.139400e+00 : f32
// CHECK-NEXT: %1 = arith.constant -1.436000e-01 : f32
// CHECK-NEXT: %2 = arith.constant 9.417903e+00 : f32
// CHECK-NEXT: %3 = arith.constant 9.542894e-01 : f32
// CHECK-NEXT: %1 = arith.constant -0.14360000000000017 : f32
// CHECK-NEXT: %2 = arith.constant 9.41790285 : f32
// CHECK-NEXT: %3 = arith.constant 0.9542893522202769 : f32
// CHECK-NEXT: "test.op"(%0, %1, %2, %3) : (f32, f32, f32, f32) -> ()
}

Expand All @@ -57,7 +57,7 @@ func.func @test_const_var_const() {
// CHECK-NEXT: %b = arith.constant 3.141500e+00 : f32
// CHECK-NEXT: %2 = arith.mulf %0, %a : f32
// CHECK-NEXT: %3 = arith.mulf %2, %b : f32
// CHECK-NEXT: %4 = arith.constant 2.129352e+01 : f32
// CHECK-NEXT: %4 = arith.constant 21.29352225 : f32
// CHECK-NEXT: %5 = arith.mulf %4, %0 fastmath<fast> : f32
// CHECK-NEXT: "test.op"(%3, %5) : (f32, f32) -> ()
}
Expand Down
17 changes: 0 additions & 17 deletions tests/filecheck/mlir-conversion/with-mlir/print-fp-precision.mlir

This file was deleted.

4 changes: 4 additions & 0 deletions tests/filecheck/parser-printer/float_parsing.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@

"test.op"() {"value" = -34.e-12 : f32} : () -> ()
// CHECK-NEXT: "test.op"() {"value" = -3.400000e-11 : f32} : () -> ()

// this should print in full precision
"test.op"() {"value" = 3.141592653589793 : f64} : () -> ()
// CHECK-NEXT: "test.op"() {"value" = 3.141592653589793 : f64} : () -> ()
}) : () -> ()
17 changes: 0 additions & 17 deletions tests/filecheck/parser-printer/print-fp-precision.mlir

This file was deleted.

2 changes: 1 addition & 1 deletion tests/filecheck/transforms/csl-stencil-to-csl-wrapper.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: xdsl-opt %s --print-reduced-precision-fp -p "csl-stencil-to-csl-wrapper" | filecheck %s
// RUN: xdsl-opt %s -p "csl-stencil-to-csl-wrapper" | filecheck %s

func.func @gauss_seidel(%a : !stencil.field<[-1,1023]x[-1,511]xtensor<512xf32>>, %b : !stencil.field<[-1,1023]x[-1,511]xtensor<512xf32>>, %c : memref<255xf32>) {
%0 = stencil.load %a : !stencil.field<[-1,1023]x[-1,511]xtensor<512xf32>> -> !stencil.temp<[-1,2]x[-1,2]xtensor<512xf32>>
Expand Down
2 changes: 1 addition & 1 deletion tests/filecheck/transforms/linalg-to-csl.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ builtin.module {
//CHECK-NEXT: %12 = arith.constant 1.123400e-01 : f32
//CHECK-NEXT: "csl.fmuls"(%0, %12, %0) : (memref<16xf32>, f32, memref<16xf32>) -> ()
//CHECK-NEXT: %c = arith.constant dense<2.997925e+08> : memref<16xf32>
//CHECK-NEXT: %13 = arith.constant 2.997925e+08 : f32
//CHECK-NEXT: %13 = arith.constant 299792458.0 : f32
//CHECK-NEXT: "csl.fmacs"(%0, %2, %0, %13) : (memref<16xf32>, memref<16xf32>, memref<16xf32>, f32) -> ()
//CHECK-NEXT: }

0 comments on commit 84f6b11

Please sign in to comment.