Skip to content

[LLVM] llvm.fptosi.sat.* and llvm.fptoui.sat.* generate suboptimal code in some cases on x86 #136342

@johnplatts

Description

@johnplatts

Here is a snippet that demonstrates suboptimal code generation for llvm.fptosi.sat.* and llvm.fptoui.sat.* on x86 with SSE2 or AVX512F enabled but not with AVX10.2 enabled in the case where floating point exceptions are ignored and masked:
https://godbolt.org/z/bPY4orsK5

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