[PATCH] [AVX-512] - Add FMA instruction with Rounding mode

Elena Demikhovsky elena.demikhovsky at intel.com
Wed Jan 14 23:42:20 PST 2015

Hi Adam,

We'd like to submit this code and proceed.
The goal is to let setting rounding mode in intrinsics. The operations that we talk about are FP arithmetic - like FADD, FMUL, FSUB, FDIV, FMA - 512 bit vector only.
And FP conversions. Nothing more, so there is no correlation with masks.

I see 2 options right now.

1. define an additional X86 node type for each intrinsic
2. Wrap the existing node with ROUNDMODE

In the patch we are giving solution number 2 and say that it is safe. If ROUNDMODE and FADD will be separated, the compilation will fail with "cannot select".
Do you still have any concerns?

Thank you for reviewing this.




More information about the llvm-commits mailing list