[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #136026)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 22:46:38 PDT 2025
================
@@ -0,0 +1,28 @@
+// RUN: %clang_cc1 %s -triple spirv-pc-vulkan-compute -verify
+
+typedef float float2 __attribute__((ext_vector_type(2)));
+
+float2 test_no_second_arg(float2 p0) {
+ return __builtin_spirv_refract(p0);
+ // expected-error at -1 {{too few arguments to function call, expected 3, have 1}}
----------------
farzonl wrote:
you only need one less than test
https://github.com/llvm/llvm-project/pull/136026
More information about the llvm-commits
mailing list