================ @@ -0,0 +1,52 @@ +// cl_khr_cooperative_matrix registration test. +// +// Test if extension macro is predefined when the extension is enabled +// RUN: %clang_cc1 -triple spirv64-unknown-unknown \ +// RUN: -cl-std=CL2.0 -cl-ext=+cl_khr_cooperative_matrix \ +// RUN: -finclude-default-header -E -dM %s \ +// RUN: | FileCheck %s --check-prefix=EXT + +// EXT: cl_khr_cooperative_matrix + +// Test if extension is NOT predefined when explicitly disabled +// RUN: %clang_cc1 -triple spirv64-unknown-unknown \ +// RUN: -cl-std=CL2.0 -cl-ext=-cl_khr_cooperative_matrix \ +// RUN: -finclude-default-header -E %s \ ---------------- svenvh wrote:
Is this missing `-dM`? https://github.com/llvm/llvm-project/pull/221328 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
