[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 16 11:50:58 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
----------------
farzonl wrote:
add spirv tests so you can check for `@llvm.spv.saturate`
https://github.com/llvm/llvm-project/pull/104619
More information about the cfe-commits
mailing list