Skip to content

Add sign matrix tests - #1489

Merged
kmpeng merged 4 commits into
llvm:mainfrom
djb:add-sign-matrix-tests
Sep 11, 2026
Merged

kmpeng merged 4 commits into
llvm:mainfrom
djb:add-sign-matrix-tests

Conversation

@djb

@djb djb commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #793

Add matrix tests for sign covering 32 bit float, int, and uint.

Only testing 32 bit element types because the matrix-specific lowering is independent of element width on both DXIL and SPIR-V backends, and the behavior of sign on 16 and 64 bit types is already covered well by the existing scalar/vector tests.

Assisted-by: GPT 5.6 Sol

djb added 2 commits August 31, 2026 21:01
Closes llvm#793

Adds matrix tests for sign covering 32 bit float, int, and uint.

Only testing 32 bit element types because the matrix-specific lowering
is independent of element width on both DXIL and SPIR-V backends, and
the behavior of sign on 16 and 64 bit types is already covered well by
the existing scalar/vector tests.
@kmpeng
kmpeng self-requested a review September 4, 2026 23:31
@djb

djb commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Sorry, I see that I've failed CI a couple of times because XFAILs on unrelated tests had gone stale on my branch. I'll try to keep my branch updated daily from now on, my bad.

@kmpeng

kmpeng commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

@djb No need to always keep the branch updated! As long as you make sure the tests touched by your PR aren't failing and there aren't merge conflicts, that's good.

Also sorry I haven't reviewed this yet, I've been out sick. Will try to get to it today.

@kmpeng kmpeng 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. Do you need help merging this in?

@djb

djb commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for the reviews!

@kmpeng Got it. Yes, please, if you could merge it for me that would be great, thanks. Hope that you are feeling all better soon!

@kmpeng
kmpeng merged commit 19c452d into llvm:main Sep 11, 2026
28 checks passed
Alexander-Johnston pushed a commit to Alexander-Johnston/offload-test-suite that referenced this pull request Sep 14, 2026
Closes llvm#793

Add matrix tests for `sign` covering 32 bit `float`, `int`, and `uint`.

Only testing 32 bit element types because the matrix-specific lowering
is independent of element width on both DXIL and SPIR-V backends, and
the behavior of `sign` on 16 and 64 bit types is already covered well by
the existing scalar/vector tests.

Assisted-by: GPT 5.6 Sol
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.

[Matrix] Add matrix test for sign

3 participants