[clang] [llvm] [HLSL] Move `step` implementation to header files (PR #214604)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 10:46:24 PDT 2026


================
@@ -1,83 +1,71 @@
 // RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
 // RUN:   dxil-pc-shadermodel6.3-library %s -fnative-half-type -fnative-int16-type \
-// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
-// RUN:   --check-prefixes=CHECK,NATIVE_HALF \
-// RUN:   -DFNATTRS="hidden noundef nofpclass(nan inf)" -DTARGET=dx
-// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
-// RUN:   dxil-pc-shadermodel6.3-library %s -emit-llvm -disable-llvm-passes \
-// RUN:   -o - | FileCheck %s --check-prefixes=CHECK,NO_HALF \
-// RUN:   -DFNATTRS="hidden noundef nofpclass(nan inf)" -DTARGET=dx
+// RUN:   -emit-llvm -O1 -o - | FileCheck %s
 // RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
 // RUN:   spirv-unknown-vulkan-library %s -fnative-half-type -fnative-int16-type \
----------------
farzonl wrote:

we should not need a second run anymore since the codegen is the same. the only difference would be the inclusion of spirv_func

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


More information about the llvm-commits mailing list