Skip to content

Feature request: vector.reduce.fmaximum_num and vector.reduce.fminimum_num #185827

@RalfJung

Description

@RalfJung

LLVM has three min/max operations on floats (minnum, minimum, minimumnm), whose semantics have finally been clarified in #172012. However, only two of those have corresponding vector.reduce variants -- there is none that corresponds to minimumnm.

For Rust's (unstable) portable SIMD APIs, we'd like to have reduce_min/reduce_max operations, and they should be consistent with the usual scalar semantics for min/max, which for Rust means minimumnum (or more specifically, minimumnum nsz) -- that's exactly the missing intrinsic.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions