[clang] [HLSL] Implement the `lit` intrinsic (PR #134171)

Kaitlin Peng via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 8 14:03:25 PDT 2025


================
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
+
+float4 test_double_inputs(double p0, double p1, double p2) {
+  return lit(p0, p1, p2);
----------------
kmpeng wrote:

Code updated.

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


More information about the cfe-commits mailing list