Skip to content

Don't know how to soften fpowi to fpow on x86 uefi targets #134508

Open
@usamoi

Description

@usamoi

I tried this code:

#[no_mangle]
fn f(x: f32, n: i32) -> f32 {
    x.powi(n)
}
cargo build --target x86_64-unknown-uefi

I expected to see this happen: it compiles

Instead, this happened:

error: Don't know how to soften fpowi to fpow

Same error on i686-unknown-uefi, but not on aarch64-unknown-uefi.

Meta

rustc --version --verbose:

rustc 1.83.0 (90b35a623 2024-11-26)
binary: rustc
commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf
commit-date: 2024-11-26
host: x86_64-unknown-linux-gnu
release: 1.83.0
LLVM version: 19.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-external-bugCategory: issue that is caused by bugs in software beyond our controlO-UEFIUEFIT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions