[llvm] [NVPTX] Support llvm.{exp2, log2} for f32 and vector of f32 (PR #120519)
Princeton Ferro via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 11:15:28 PST 2024
================
@@ -968,7 +968,8 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
setOperationAction(ISD::CopyToReg, MVT::i128, Custom);
setOperationAction(ISD::CopyFromReg, MVT::i128, Custom);
- // No FEXP2, FLOG2. The PTX ex2 and log2 functions are always approximate.
+ setOperationAction(ISD::FEXP2, MVT::f32, Legal);
+ // No FLOG2. The PTX log2 function is always approximate.
----------------
Prince781 wrote:
Added `log2`.
https://github.com/llvm/llvm-project/pull/120519
More information about the llvm-commits
mailing list