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

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 24 17:38:58 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:

Thats a artifact of  the early days where we wanted to test vector support in `DXILIntrinsicExpansion.cpp` but we were unable to do that type of testing with `DXILLowering.cpp`. Now that we have the scalarizer pass. We should probably clean that up in the DX backend.

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


More information about the cfe-commits mailing list