[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)
S. Bharadwaj Yadavalli via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 19 08:04:19 PDT 2024
================
@@ -0,0 +1,54 @@
+// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
+// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
+// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
+// RUN: --check-prefixes=CHECK,NATIVE_HALF
+// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
+// RUN: dxil-pc-shadermodel6.3-library %s -emit-llvm -disable-llvm-passes \
+// RUN: -o - | FileCheck %s --check-prefixes=CHECK,NO_HALF
----------------
bharadwajy wrote:
> add spirv tests so you can check for `@llvm.spv.saturate`
Done.
https://github.com/llvm/llvm-project/pull/104619
More information about the cfe-commits
mailing list