[llvm-branch-commits] [clang] [HLSL][Matrix] Add Matrix splat support for booleans (PR #175809)

Farzon Lotfi via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 13 11:16:43 PST 2026


================
@@ -23,6 +23,17 @@ void ConstantFloatSplat() {
     float2x2 M = 3.25;
 }
 
+// CHECK-LABEL: define hidden void @_Z17ConstantBoolSplatv(
+// CHECK-SAME: ) #[[ATTR0]] {
+// CHECK-NEXT:  [[ENTRY:.*:]]
+// CHECK-NEXT:    [[M:%.*]] = alloca [9 x i32], align 4
+// CHECK-NEXT:    store <9 x i32> splat (i32 1), ptr [[M]], align 4
----------------
farzonl wrote:

Do a false case as well so we can see i32 0

https://github.com/llvm/llvm-project/pull/175809


More information about the llvm-branch-commits mailing list