[Mlir-commits] [mlir] [mlir][llvmir] Add llvm.intr.ldexp operation (PR #133070)

Letu Ren llvmlistbot at llvm.org
Wed Mar 26 07:02:38 PDT 2025


FantasqueX wrote:

You are right. LLVM allows different width `power` since https://reviews.llvm.org/D99439. However, I still think `power` shouldn't be a signless integer.
https://godbolt.org/z/j4h5v3cco https://godbolt.org/z/WbW9naohx
`llvm.powi` can handle both signed and unsigned integer.
What's more, LLVM's document says "The ‘llvm.powi.*’ intrinsics return the first operand raised to the specified (positive or negative) power." Only if it accepts signed integer, it can handle both positive and negative.

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


More information about the Mlir-commits mailing list