Skip to content

Add max tests - #345

Merged
kmpeng merged 4 commits into
llvm:mainfrom
kmpeng:max-tests
Aug 19, 2025
Merged

kmpeng merged 4 commits into
llvm:mainfrom
kmpeng:max-tests

Conversation

@kmpeng

@kmpeng kmpeng commented Aug 11, 2025 •

Copy link
Copy Markdown
Contributor

Closes #148.

Adds tests for max testing 16 bit int types, half, 32 bit types, 64 bit int types, and double. Most values for 16 bit int and 32 bit int pulled from HLK tests. Didn't use HLK test inputs for half and float because they were mostly nan/inf/denorm values. No HLK tests for 64 bit int and double.
Need to remove XFAIL after #7691 is fixed.

@kmpeng
kmpeng marked this pull request as ready for review August 11, 2025 20:51

@spall spall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment on other float sizes; otherwise looks good

Comment thread test/Feature/HLSLLib/max.32.test Resolved

@llvm-beanz llvm-beanz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. A few small comments on run lines.

Comment thread test/Feature/HLSLLib/max.32.test Resolved
Comment thread test/Feature/HLSLLib/max.fp16.test Resolved
Comment thread test/Feature/HLSLLib/max.fp64.test Resolved
Comment thread test/Feature/HLSLLib/max.int16.test Resolved
Comment thread test/Feature/HLSLLib/max.int64.test Resolved

@spall spall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@kmpeng
kmpeng merged commit 58a3f8b into llvm:main Aug 19, 2025
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.

Add test for max

4 participants