[llvm-branch-commits] [clang] [HLSL][Matrix] Add implicit matrix floating-point conversion checks (PR #179568)
Alex Sepkowski via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Feb 3 15:49:26 PST 2026
================
@@ -239,6 +239,7 @@ void matOrVec3(float4x4 F) {}
export void Case8(float2x3 f23, float4x4 f44, float3x3 f33, float3x2 f32) {
int2x2 i22 = f23;
// expected-warning at -1{{implicit conversion truncates matrix: 'float2x3' (aka 'matrix<float, 2, 3>') to 'int2x2' (aka 'matrix<int, 2, 2>')}}
+ // expected-warning at -2{{implicit conversion turns floating-point number into integer: 'float2x3' (aka 'matrix<float, 2, 3>') to 'int2x2' (aka 'matrix<int, 2, 2>')}}
----------------
alsepkow wrote:
Do we also want test cases for converting to 16-bit types?
https://github.com/llvm/llvm-project/pull/179568
More information about the llvm-branch-commits
mailing list