Skip to content

Commit 55d11cc

Browse files
committed
add mlir_apfloat_wrappers
1 parent 9e17a7e commit 55d11cc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

mlir/test/Integration/Dialect/Arith/CPU/test-apfloat-emulation.mlir

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
// Case 1: All floating-point arithmetics is lowered through APFloat.
22
// RUN: mlir-opt %s --convert-arith-to-apfloat --convert-to-llvm | \
33
// RUN: mlir-runner -e entry --entry-point-result=void \
4-
// RUN: --shared-libs=%mlir_c_runner_utils | FileCheck %s
4+
// RUN: --shared-libs=%mlir_c_runner_utils \
5+
// RUN: --shared-libs=%mlir_apfloat_wrappers | FileCheck %s
56

67
// Case 2: Only unsupported arithmetics (f8E4M3FN) is lowered through APFloat.
78
// Arithmetics on f32 is lowered directly to LLVM.
89
// RUN: mlir-opt %s --convert-to-llvm --convert-arith-to-apfloat \
910
// RUN: --convert-to-llvm --reconcile-unrealized-casts | \
1011
// RUN: mlir-runner -e entry --entry-point-result=void \
11-
// RUN: --shared-libs=%mlir_c_runner_utils | FileCheck %s
12+
// RUN: --shared-libs=%mlir_c_runner_utils \
13+
// RUN: --shared-libs=%mlir_apfloat_wrappers | FileCheck %s
1214

1315
// Put rhs into separate function so that it won't be constant-folded.
1416
func.func @foo() -> (f8E4M3FN, f32) {

mlir/test/lit.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def find_real_python_interpreter():
208208
add_runtime("mlir_c_runner_utils"),
209209
add_runtime("mlir_async_runtime"),
210210
add_runtime("mlir_float16_utils"),
211+
add_runtime("mlir_apfloat_wrappers"),
211212
"mlir-linalg-ods-yaml-gen",
212213
"mlir-reduce",
213214
"mlir-pdll",

0 commit comments

Comments
 (0)