This is an archive of the discontinued LLVM Phabricator instance.

[mlir][arith] Add integration tests for addi emulation
ClosedPublic

Authored by kuhar on Sep 20 2022, 3:11 PM.

Details

Summary

This includes tests with the exact expected values and comparison-based tests.

Diff Detail

Event Timeline

kuhar created this revision.Sep 20 2022, 3:11 PM
Herald added a project: Restricted Project. · View Herald Transcript
kuhar requested review of this revision.Sep 20 2022, 3:11 PM
antiagainst accepted this revision.Sep 20 2022, 3:27 PM
This revision is now accepted and ready to land.Sep 20 2022, 3:27 PM
antiagainst added inline comments.Sep 20 2022, 3:28 PM
mlir/test/Integration/Dialect/Arithmetic/CPU/test-wide-int-emulation-addi-i16.mlir
33

Nit: naming it like this makes the tests confusing in the below, as it reads like a positive number. What about cst_n1 to be clear?

kuhar marked an inline comment as done.Sep 20 2022, 3:50 PM
kuhar added inline comments.
mlir/test/Integration/Dialect/Arithmetic/CPU/test-wide-int-emulation-addi-i16.mlir
33

Thanks for pointing this out. I'll land this as-is and then submit a follow up commit to fix naming in all of these tests in one sweep.

This revision was automatically updated to reflect the committed changes.
kuhar marked an inline comment as done.