Issue 88059
Summary [SPIRV][HLSL] Implement `frac` lowering
Labels HLSL, backend:SPIR-V, SPIR-V
Assignees
Reporter farzonl
    This work needs to come after: https://github.com/llvm/llvm-project/issues/87776

once we have `llvm.frexp` we need to test if the support alreadt exists. If it doesn't we need to add it. 

update the frac.hlsl unit tests:
https://github.com/llvm/llvm-project/blob/1e6ce5e284f5c0e8d64eee21af727bb164eb3caf/clang/test/CodeGenHLSL/builtins/frac.hlsl#L2

example:
https://shader-playground.timjones.io/020254826814c6bfb01e671c08c15db4

and implement the `OpExtInst Fract` Lowering:
`%13 = OpExtInst %v4float %1 Fract %12`
https://registry.khronos.org/SPIR-V/specs/1.0/GLSL.std.450.html#Fract
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to