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

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 23 17:13:49 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 %}
----------------
farzonl wrote:

What is the reason for having a clamp and clamp-vec test file? Why not merge to one file? We have done scalar and vector tests for all other hlsl intrinsics in one file so not sure what makes this special.

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


More information about the cfe-commits mailing list