Skip to content

Include ldexp* intrinsics on the wasm target #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2019

Conversation

alexcrichton
Copy link
Member

Looks like LLVM optimizes programs like:

fn foo(a: u8) -> f32 {
    2.0f32.powf(a as f32)
}

to actually invoking ldexpf, so let's be sure to include bindings so
there's not undefined symbols.

Looks like LLVM optimizes programs like:

    fn foo(a: u8) -> f32 {
        2.0f32.powf(a as f32)
    }

to actually invoking `ldexpf`, so let's be sure to include bindings so
there's not undefined symbols.
@alexcrichton alexcrichton merged commit 2668e57 into rust-lang:master May 2, 2019
@alexcrichton alexcrichton deleted the ldexp branch May 2, 2019 21:17
@jethrogb
Copy link
Contributor

Between SGX and Wasm we keep finding things like these... Is there a more structured approach we can take to figuring out the symbols LLVM codegen might pull in?

tgross35 pushed a commit to tgross35/compiler-builtins that referenced this pull request Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants