[clang] [llvm] [HLSL] Adding HLSL `clip` function. (PR #114588)
Steven Perron via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 17:56:23 PST 2024
================
@@ -0,0 +1,77 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK,SPIRV15
+; RUN: llc -verify-machineinstrs -spirv-ext=+SPV_EXT_demote_to_helper_invocation -O0 -mtriple=spirv32v1.6-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK,SPIRV16
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
+
+
+; Make sure lowering is correctly generating spirv code.
+
+; CHECK-DAG: %[[#float:]] = OpTypeFloat 32
----------------
s-perron wrote:
Before the types you should check that at the capabilities and extension are correctly added.
https://github.com/llvm/llvm-project/pull/114588
More information about the cfe-commits
mailing list