Author: Akimasa Watanuki
Date: 2026-02-28T13:12:09+09:00
New Revision: d72e95bab071ef4f7f45ab3c4e47047325d50333

URL: 
https://github.com/llvm/llvm-project/commit/d72e95bab071ef4f7f45ab3c4e47047325d50333
DIFF: 
https://github.com/llvm/llvm-project/commit/d72e95bab071ef4f7f45ab3c4e47047325d50333.diff

LOG: [CIR] Use `-verify` on 
clang/test/CIR/CodeGenHLSL/matrix-element-expr-load.hlsl (#182817)

Update clang/test/CIR/CodeGenHLSL/matrix-element-expr-load.hlsl to use
`-verify` with expected CIR NYI diagnostics.

Added: 
    

Modified: 
    clang/test/CIR/CodeGenHLSL/matrix-element-expr-load.hlsl

Removed: 
    


################################################################################
diff  --git a/clang/test/CIR/CodeGenHLSL/matrix-element-expr-load.hlsl 
b/clang/test/CIR/CodeGenHLSL/matrix-element-expr-load.hlsl
index f944e11d199cc..68ad4f94a248d 100644
--- a/clang/test/CIR/CodeGenHLSL/matrix-element-expr-load.hlsl
+++ b/clang/test/CIR/CodeGenHLSL/matrix-element-expr-load.hlsl
@@ -1,8 +1,9 @@
-// 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}}
+// expected-error@*:* {{ClangIR code gen Not Yet Implemented: Matrix type 
conversion}}
+float test_zero_indexed(float2x2 M) {
+  // expected-error@+1 {{ClangIR code gen Not Yet Implemented: 
ScalarExprEmitter: matrix element}}
+  return M._m00;
 }


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to