[clang] [CIR] Guard `CK_VectorSplat` on failed scalar emission (PR #182817)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 24 07:42:20 PST 2026


================
@@ -1,8 +1,8 @@
-// RUN: not %clang_cc1 -x hlsl -finclude-default-header -triple spirv-unknown-vulkan-compute %s \
-// RUN:   -fclangir -emit-cir -disable-llvm-passes 2>&1 | FileCheck %s
+// RUN: %clang_cc1 -x hlsl -finclude-default-header -triple spirv-unknown-vulkan-compute %s \
+// RUN:   -fclangir -emit-cir -disable-llvm-passes -verify
 
-// CHECK: ClangIR code gen Not Yet Implemented: processing of type: ConstantMatrix
-float test_zero_indexed(float2x2 M) { 
-  // CHECK: ClangIR code gen Not Yet Implemented: ScalarExprEmitter: matrix element
-  return M._m00; 
+// expected-error@*:* {{ClangIR code gen Not Yet Implemented: processing of type: ConstantMatrix}}
----------------
erichkeane wrote:

This is probably not a bad change either.

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


More information about the cfe-commits mailing list