Skip to content

vector.ldexpf

← vector dialect

Elementwise binary exponent scaling with scalar.ldexpf semantics. The input and signed i32 exponent vectors have the same shape.

Operation contract

Property Value
Semantic phase executable
Traits Pure, Elementwise, SafeToSpeculate

Signature

Kind Name Type Cardinality Description
Operand input vector required —
Operand exponent vector required —
Result result vector required —

Verification constraints

  • HasFloatElement(input)
  • HasI32Element(exponent)
  • SameType(input, result)
  • SameShape(input, exponent, result)

Examples

%scaled = vector.ldexpf %input, %exponent : vector<4xf64>, vector<4xi32>