[clang] [llvm] [HLSL] Move `lerp` implementation to header files (PR #215692)
Kaitlin Peng via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 17:46:58 PDT 2026
================
@@ -1,130 +0,0 @@
-// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
-
-float2 test_no_second_arg(float2 p0) {
- return __builtin_hlsl_lerp(p0);
- // expected-error at -1 {{too few arguments to function call, expected 3, have 1}}
-}
-
-float2 test_no_third_arg(float2 p0) {
- return __builtin_hlsl_lerp(p0, p0);
- // expected-error at -1 {{too few arguments to function call, expected 3, have 2}}
-}
-
-float2 test_too_many_arg(float2 p0) {
- return __builtin_hlsl_lerp(p0, p0, p0, p0);
- // expected-error at -1 {{too many arguments to function call, expected 3, have 4}}
-}
-
-float2 test_lerp_no_second_arg(float2 p0) {
----------------
kmpeng wrote:
Yes, there's no lerp specific error handling left. See this thread for a more in-depth discussion: https://github.com/llvm/llvm-project/pull/215379#discussion_r3753231035
https://github.com/llvm/llvm-project/pull/215692
More information about the llvm-commits
mailing list