[llvm] [SPIRV] Implement translation for llvm.modf.* intrinsics (PR #147556)

Victor Lomuller via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 00:10:44 PDT 2025


================
@@ -337,3 +337,25 @@ entry:
 }
 
 declare float @llvm.fma.f32(float, float, float)
+
+; CHECK: OpFunction
+; CHECK: %[[#d:]] = OpFunctionParameter %[[#]]
+; CHECK: %[[#fracPtr:]] = OpFunctionParameter %[[#]]
+; CHECK: %[[#integralPtr:]] = OpFunctionParameter %[[#]]
+; CHECK: %[[#varPtr:]] = OpVariable %[[#]] Function
----------------
Naghasan wrote:

can you add a spirv-val check for the test as well, the pointer was ill-formed and nothing caught it

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


More information about the llvm-commits mailing list