Skip to content

Add matrix tests for isinf() and isnan() - #1397

Open
danbrown-amd wants to merge 5 commits into
llvm:mainfrom
danbrown-amd:isnan_mat
Open

Add matrix tests for isinf() and isnan()#1397
danbrown-amd wants to merge 5 commits into
llvm:mainfrom
danbrown-amd:isnan_mat

Conversation

@danbrown-amd

@danbrown-amd danbrown-amd commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Resolves #810 and #929.

@danbrown-amd
danbrown-amd force-pushed the isnan_mat branch 3 times, most recently from c100964 to 006f9d4 Compare August 19, 2026 02:45
This was linked to issues Aug 21, 2026

@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.

From now on, could you please use Github's closing keywords (e.g. closes, resolves, etc.) instead of "addresses" in your PRs so the linked issues are closed upon merge?

Comment thread test/Feature/HLSLLib/isinf_mat.32.test Outdated
Comment thread test/Feature/HLSLLib/isinf_mat.32.test Outdated
Comment thread test/Feature/HLSLLib/isinf_mat.32.test Outdated
Comment thread test/Feature/HLSLLib/isinf_mat.32.test Outdated
Comment thread test/Feature/HLSLLib/isinf_mat.32.test Outdated
Comment on lines +67 to +68
# Bug: https://github.com/llvm/llvm-project/issues/140824
# XFAIL: Clang

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.

Just wondering, is there any way we can avoid hitting this bug with these tests? Or would that require a huge workaround? Kind of unfortunate we can't test the Clang implementation that went in at all because of this bug :\

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'll look into what it would take to avoid the bug. I saw that it got unassigned...

Comment thread test/Feature/HLSLLib/isinf_mat.fp16.test Outdated
Comment thread test/Feature/HLSLLib/isinf_mat.test
Comment thread test/Feature/HLSLLib/isinf_mat.32.test Outdated

@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, just had two comments

Comment thread test/Feature/HLSLLib/isinf_mat.32.test Outdated
Comment thread test/Feature/HLSLLib/isnan_mat.32.test Outdated
Co-authored-by: Kaitlin Peng <hi.kaitlin@gmail.com>
Comment thread test/Feature/HLSLLib/isinf_mat.test
Comment thread test/Feature/HLSLLib/isnan_mat.test
danbrown-amd and others added 2 commits August 24, 2026 18:59
Co-authored-by: Kaitlin Peng <hi.kaitlin@gmail.com>
@danbrown-amd

Copy link
Copy Markdown
Collaborator Author

Build is broken:

2026-08-25T01:12:05.3092098Z C:\actions-runner\_work\offload-test-suite\offload-test-suite\llvm-project\llvm\lib\Analysis\AliasSetTracker.cpp(336,31): error: no member named 'ModAccess' in 'llvm::AliasSet'
2026-08-25T01:12:05.3093225Z   336 |                     AliasSet::ModAccess);
2026-08-25T01:12:05.3093609Z       |                     ~~~~~~~~~~^

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 isnan [Matrix] Add matrix test for isinf

3 participants