[clang] [llvm] [HLSL] Move `normalize` implementation to header files (PR #216228)

Joshua Batista via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 26 16:58:13 PDT 2026


================
@@ -1,31 +0,0 @@
-// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -fnative-int16-type -disable-llvm-passes -verify
-
-void test_too_few_arg()
-{
-  return __builtin_hlsl_normalize();
----------------
bob80905 wrote:

Vaguely recall us discussing that for header-defined intrinsics, these sorts of tests still need to stick around in some form.
If normalize is called with too many args, what should we expect as a diagnostic?
Or are we testing a part of the compiler that is already well tested at that point?

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


More information about the cfe-commits mailing list