[clang] [HLSL] add extra scalar vector overloads for clamp (PR #129939)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 17 07:39:27 PDT 2025


================
@@ -0,0 +1,7 @@
+// RUN: not %clang_dxc -enable-16bit-types -T cs_6_0 -HV 202x %s 2>&1  | FileCheck %s
+
+// check we error on 16 bit type if shader model is too old
+// CHECK: '-enable-16bit-types' option requires target HLSL Version >= 2018 and shader model >= 6.2, but HLSL Version is 'hlsl202x' and shader model is '6.0'
+half test_half_error(half p0, int p1) {
----------------
farzonl wrote:

```suggestion
TEST_TYPE test_16bit_error(TEST_TYPE p0, int p1) {
```

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


More information about the cfe-commits mailing list