[llvm] [TLI][NFC] Autogenerate vectorized libcall tests for SLEEF/ArmPL. (PR #76146)

Maciej Gabka via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 21 05:35:52 PST 2023


================
@@ -1,4 +1,4 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --filter "(_)|(cos|expf?\(|exp2|exp10|fmod|gamma|log|pow|sin|sqrt|tan)|(ret)" --version 2
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --filter "call.*(cos|^exp|mod|gamma|log|pow|sin|sqrt|tan)" --version 4
 ; RUN: opt -vector-library=sleefgnuabi -passes=inject-tli-mappings,loop-vectorize,simplifycfg -prefer-predicate-over-epilogue=predicate-dont-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s --check-prefix=NEON
----------------
mgabka wrote:

It looks like the ArmPL tests are having more coverage maybe it is wort to copy them here and just modify the run lines?

The sleef tests are much older, added in 2018, by https://reviews.llvm.org/D53927
I added the ArmPL tests myself in https://reviews.llvm.org/D154508, but there is no need to have them written differently.
 The difference is only in the mappings used, I think that unifying them may have sense (but still keep them in separate file to avoid long files), and since you are doing a bit of refactoring maybe you could do it?


https://github.com/llvm/llvm-project/pull/76146


More information about the llvm-commits mailing list