Skip to content

Conversation

@farzonl
Copy link
Member

@farzonl farzonl commented Nov 26, 2025

fixes #506

This PR is a partner pr to llvm/llvm-project#168915 It should not run until after the llvm pr merges. That way I won't have XFAIL the clang code.

It adds 3 types of tests elementwise casts, vector elementwise casts,
and trunc casts.

It also moves the existing matrix tests into a Matrix folder for better organization.

fixes llvm#506

This PR is a partner pr to llvm/llvm-project#168915
It should not run until after the llvm pr merges. That way I won't have
XFAIL the clang code.

It adds 3 types of tests elementwise casts, vector elementwise casts,
   and trunc casts.

It also moves the existing matrix tests into a Matrix folder for better
organization.
Copy link

@tex3d tex3d left a comment

Choose a reason for hiding this comment

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

LGTM

int2x2 M2 = (int2x2)V;
const uint COLS = 2; // float2x2 => 2 rows, 2 columns
uint row = GI / COLS; // 0..1
uint col = GI % COLS; // 0..2
Copy link

Choose a reason for hiding this comment

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

nit

Suggested change
uint col = GI % COLS; // 0..2
uint col = GI % COLS; // 0..1

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 tests for Matrix cast

2 participants