[clang] [llvm] [HLSL][SPIRV] Added clamp intrinsic (PR #113394)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 23 17:11:02 PDT 2024
================
@@ -1,133 +1,143 @@
// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library %s \
// RUN: -fnative-half-type -emit-llvm -disable-llvm-passes -o - | \
-// RUN: FileCheck %s --check-prefixes=CHECK,NATIVE_HALF
+// RUN: FileCheck %s --check-prefixes=CHECK,NATIVE_HALF \
+// RUN: -DSCLAMP="dx.clamp" -DUCLAMP="dx.uclamp" -DFCLAMP="dx.clamp" -DFNATTR="noundef"
----------------
farzonl wrote:
if we use the same intrinsic name then these tests will get simpler so that the only define would be the target of dx or spv.
https://github.com/llvm/llvm-project/pull/113394
More information about the llvm-commits
mailing list