================ @@ -0,0 +1,27 @@ + +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm -disable-llvm-passes -verify -verify-ignore-unexpected ---------------- python3kgae wrote:
We have all those intrinsic error check tests which looks the same. Is it possible to make the builtin name as a macro and just add more run lines for each new builtin? Something like ``` float test_too_few_arg() { return TEST_NAME(); // expected-error@-1 {{too few arguments to function call, expected 1, have 0}} } ``` and add ``` -DTEST_NAME=__builtin_hlsl_elementwise_rcp ``` to the RUN line https://github.com/llvm/llvm-project/pull/83857 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits