[mlir][arith] Add test pass for wide integer emulation
authorJakub Kuderski <kubak@google.com>
Tue, 20 Sep 2022 15:03:37 +0000 (11:03 -0400)
committerJakub Kuderski <kubak@google.com>
Tue, 20 Sep 2022 15:22:28 +0000 (11:22 -0400)
commit242d558658cd5a480b02883e2982d7246342e0d0
tree2947fccb3917c0dd3c8bd44e442f51cc60532499
parent887b8bd733ea36aaa5d9b0a2b45df16c6f6bb6a4
[mlir][arith] Add test pass for wide integer emulation

The new test pass allows for running wide integer emulation conversion
within specified functions only.

I intend to use it in integration tests in a way that allows me print both
original and emulated results in the same format, or even compare both results
at runtime and print on mismatch only.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D134120
mlir/test/Dialect/Arithmetic/test-emulate-wide-int-pass.mlir [new file with mode: 0644]
mlir/test/Integration/Dialect/Arithmetic/CPU/test-wide-int-emulation-constants-i16.mlir
mlir/test/Integration/Dialect/Arithmetic/CPU/test-wide-int-emulation-muli-i16.mlir
mlir/test/lib/Dialect/Arithmetic/CMakeLists.txt [new file with mode: 0644]
mlir/test/lib/Dialect/Arithmetic/TestEmulateWideInt.cpp [new file with mode: 0644]
mlir/test/lib/Dialect/CMakeLists.txt
mlir/tools/mlir-opt/CMakeLists.txt
mlir/tools/mlir-opt/mlir-opt.cpp