[clang] [llvm] [HLSL][SPIRV] Added clamp intrinsic (PR #113394)

Adam Yang via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 16:40:26 PDT 2024


================
@@ -0,0 +1,130 @@
+; RUN: llc  -verify-machineinstrs -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
----------------
adam-yang wrote:

I'm just following what was done in DX; there's clamp and clamp-vec.

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


More information about the llvm-commits mailing list