[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 06:15:03 PDT 2025
================
@@ -0,0 +1,29 @@
+// RUN: %clang_cc1 -O1 -triple spirv-pc-vulkan-compute %s -emit-llvm -o - | FileCheck %s
+
+typedef float float2 __attribute__((ext_vector_type(2)));
+typedef float float3 __attribute__((ext_vector_type(3)));
+typedef float float4 __attribute__((ext_vector_type(4)));
+
+// CHECK-LABEL: define spir_func <2 x float> @test_refract_float2(
----------------
farzonl wrote:
@spall should we add f16 tests to this file?
https://github.com/llvm/llvm-project/pull/147342
More information about the llvm-commits
mailing list