Skip to content

Conversation

@fhahn
Copy link
Contributor

@fhahn fhahn commented Nov 28, 2025

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.

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.
@fhahn fhahn force-pushed the arg-min-max-tests branch from aebb36d to 78c6721 Compare November 29, 2025 09:47
Copy link
Member

@Meinersbur Meinersbur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No checking for negative 0, infinity, NaN?

for (unsigned long i = 0; i < OuterTC; i++) { \
_Pragma("clang loop vectorize(disable) interleave_count(1)") \
for (unsigned long j = 0; j < InnerTC; j++) { \
_Pragma("clang loop vectorize(disable) interleave_count(1)") for ( \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] whitespace change noise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants