Skip to content

Add pack_, pack_clamp_ and unpack_ tests - #1432

Merged
kmpeng merged 14 commits into
llvm:mainfrom
Alexander-Johnston:pack_unpack
Sep 22, 2026
Merged

kmpeng merged 14 commits into
llvm:mainfrom
Alexander-Johnston:pack_unpack

Conversation

@Alexander-Johnston

Copy link
Copy Markdown
Collaborator

Adds tests covering a matrix of signed, unsigned, 16, and 32 bit pack, pack_clamp, and unpack intrinsics.

As the intrinsics/tests are all simple in nature and related in function, I've packaged together all of the pack and unpack variants.

Closes #863, #864, #865, #866, #891, #892, #893, #894,

Adds tests covering a matrix of signed, unsigned, 16, and 32 bit
pack, pack_clamp, and unpack intrinsics.
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test Outdated
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test Outdated
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test Outdated
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test Outdated
Comment thread test/Feature/HLSLLib/pack_clamp_s8.32.test
Comment thread test/Feature/HLSLLib/unpack_s8s16.test
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test Outdated
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test Outdated
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test Outdated
Comment thread test/Feature/HLSLLib/unpack_u8u32.test Outdated
Comment thread test/Feature/HLSLLib/unpack_u8u16.test Outdated
Comment thread test/Feature/HLSLLib/pack_clamp_u8.16.test Outdated
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test Outdated
Comment thread test/Feature/HLSLLib/unpack_s8s16.test Outdated
Comment thread test/Feature/HLSLLib/pack_clamp_s8.16.test Outdated
Comment thread test/Feature/HLSLLib/unpack_s8s16.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, will get you another reviewer.

@kmpeng

kmpeng commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@Alexander-Johnston Good to go! Do you need someone to merge this in for you?

@Alexander-Johnston

Copy link
Copy Markdown
Collaborator Author

@Alexander-Johnston Good to go! Do you need someone to merge this in for you?

Yes, if you could @kmpeng that would be superb. Thanks for the patience while I made a right pigs ear of this one!

@kmpeng
kmpeng merged commit 3bdb6d4 into llvm:main Sep 22, 2026
59 of 82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants