================
@@ -782,6 +782,16 @@ def FMad : DXILOp<46, tertiary> {
   let attributes = [Attributes<DXIL1_0, [ReadNone]>];
 }
 
+def Fma : DXILOp<47, tertiary> {
+  let Doc = "Double-precision fused multiply-add. fma(a,b,c) = a * b + c.";
+  let intrinsics = [IntrinSelect<int_fma>];
----------------
farzonl wrote:

See llvm/test/CodeGen/DirectX/imad.ll  you will want to make sure that scalar 
and vector  intrinsic signatures both work. ie llvm ir `@llvm.fma.f64` converts 
to `f64 @dx.op.tertiary.f64(i32 47,...)`

https://github.com/llvm/llvm-project/pull/185304
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to