Page MenuHomePhabricator

[AArch64] Unit test for zext lowering for different types of vectors

Authored by nilanjana_basu on Nov 14 2022, 3:32 PM.



These are unit tests for code generated for zext lowering of vectors.
There are tests for different types of vectors, as well as cases where multiple 'zext' instructions of same type occur back-to-back.
This will help in comparing changes in zext lowering in

Diff Detail

Unit TestsFailed

240 msx64 debian > LLVM.Examples/OrcV2Examples::lljit-with-thinlto-summaries.test
Script: -- : 'RUN: at line 1'; /var/lib/buildkite-agent/builds/llvm-project/build/bin/opt -module-summary /var/lib/buildkite-agent/builds/llvm-project/llvm/test/Examples/OrcV2Examples/Inputs/main-mod.ll -o /var/lib/buildkite-agent/builds/llvm-project/build/test/Examples/OrcV2Examples/Output/main-mod.bc
60,040 msx64 debian > MLIR.Examples/standalone::test.toy
Script: -- : 'RUN: at line 1'; /usr/bin/cmake /var/lib/buildkite-agent/builds/llvm-project/mlir/examples/standalone -G "Ninja" -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DLLVM_ENABLE_LIBCXX=OFF -DMLIR_DIR=/var/lib/buildkite-agent/builds/llvm-project/build/lib/cmake/mlir -DLLVM_USE_LINKER=lld -DPython3_EXECUTABLE="/usr/bin/python3.9"

Event Timeline

nilanjana_basu created this revision.Nov 14 2022, 3:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 14 2022, 3:32 PM
nilanjana_basu published this revision for review.Nov 21 2022, 4:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 21 2022, 4:16 PM
fhahn accepted this revision.Nov 22 2022, 3:43 AM

LGTM, thanks! Please make sure that you also move any additional tests mentioned in D136722 to this patch.

This revision is now accepted and ready to land.Nov 22 2022, 3:43 AM

Added tests for multiple back-to-back zext instructions for vectors & rebased on recent commit

Added two new test cases for destination vectors of arbitrary lengths

Added an extra unit test for 'zext <8xi8> to <8xi33>'. Added GISel path testing.

fhahn accepted this revision.Dec 8 2022, 10:43 AM

LGTM, thanks!

This revision was landed with ongoing or failed builds.Dec 9 2022, 12:51 AM
This revision was automatically updated to reflect the committed changes.