[clang] [HLSL][Sema] Validate that occupied register numbers never exceed UINT32_MAX (PR #174028)
Tex Riddell via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 6 11:11:26 PST 2026
================
@@ -0,0 +1,56 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify
+
+// test semantic validation for register numbers that exceed UINT32_MAX
+
+struct S {
+ RWBuffer<float> A[4];
+ RWBuffer<int> B[10];
----------------
tex3d wrote:
You'll want to test with multiple resource classes in same struct, and multiple register bindings (for each class) on the corresponding decl.
https://github.com/llvm/llvm-project/pull/174028
More information about the cfe-commits
mailing list