Skip to content

Commit aebb36d

Browse files
committed
[Vectorizer] Convert index-select to comprehensive arg(min|max) tests.
Generalize and extend the tests in index-select.cpp to cover argmin/argmax with both finding the first and last indices. The test cases cover a range of predicates (<, <=, >, >=) with a range of initial values, trip counts and types. This adds extensive test coverage for llvm/llvm-project#141431 and follow-ups.
1 parent 3483b32 commit aebb36d

File tree

5 files changed

+735
-282
lines changed

5 files changed

+735
-282
lines changed

MicroBenchmarks/LoopVectorization/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ endif()
1010
llvm_test_run()
1111

1212
llvm_test_executable(LoopVectorizationBenchmarks
13+
ArgMaxArgMin.cpp
1314
ConditionalScalarAssignment.cpp
1415
main.cpp
1516
MathFunctions.cpp

0 commit comments

Comments
 (0)