Skip to content

Cbuffer tests for MatrixSingleSubscriptExpr#753

Merged
farzonl merged 7 commits intollvm:mainfrom
farzonl:cbuffer_tests
Mar 4, 2026
Merged

Cbuffer tests for MatrixSingleSubscriptExpr#753
farzonl merged 7 commits intollvm:mainfrom
farzonl:cbuffer_tests

Conversation

@farzonl
Copy link
Copy Markdown
Member

@farzonl farzonl commented Feb 18, 2026

fixes #747

This change tests Matrix padding is correct and applies to SingleSubscripting.

@farzonl farzonl added the test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. label Feb 18, 2026
@farzonl farzonl changed the title Cbuffer tests Cbuffer tests for MatrixSingleSubscriptExpr Feb 18, 2026
@farzonl
Copy link
Copy Markdown
Member Author

farzonl commented Feb 18, 2026

This test does not include Swizzle of MatrixSingleSubscriptExpr that is coming in a later pr.

Comment thread test/Feature/CBuffer/Matrix/SingleSubscript/mat_cbuffer.f1x4.test Outdated
Buffers:
- Name: cbuffer
Format: Float32
Data: [ 1.1, 0xFFFF, 0xFFFF, 0xFFFF,
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.

0xFFFF isn't a great sigil value for float IMO (It's like 9.18e-41?). I guess you were going for an all 1s NaN and missed a few digits. That's fine, alternatively a weird bit pattern like 0x5a5a5a5a is just a number but it's usually fairly easy to spot.

Comment thread test/Feature/CBuffer/Matrix/SingleSubscript/mat_cbuffer.f1x4.test Outdated
Comment thread test/Feature/CBuffer/Matrix/SingleSubscript/mat_cbuffer.f1x4.test Outdated
Comment thread test/Feature/CBuffer/Matrix/SingleSubscript/mat_cbuffer_multibuffer.f4x2.test Outdated
Comment thread test/Feature/CBuffer/Matrix/SingleSubscript/mat_cbuffer.f1x4.test Outdated
@farzonl farzonl requested a review from Icohedron March 3, 2026 20:19
…ail for amd because it is failing on newer gpus
@farzonl farzonl merged commit 91b1dda into llvm:main Mar 4, 2026
14 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-all When applied to a PR this will opt-in to additional pre-merge test configurations..

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HLSL][Cbuffer][Matrix] Test EmitMatrixSingleSubscriptExpr padding

3 participants