Skip to content

[LLVM] llvm.fptosi.sat.* and llvm.fptoui.sat.* generate suboptimal code on PowerPC targets #136315

Open
@johnplatts

Description

@johnplatts

The @llvm.fptosi.sat.* and @llvm.fptoui.sat.* intrinsics generate suboptimal code on PowerPC targets as demonstrated in a snippet over at https://godbolt.org/z/r6ajjTM3v.

Equivalent, more optimal alternatives on 64-bit PowerPC, POWER8, and POWER9 can be found at https://godbolt.org/z/5hKP9zhsa.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions