mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 17:36:20 +00:00
mark `f128` as reliable on `powerpc64` with `+vsx` This feature is only enabled by default for powerpc64le, and not enabled on the big-endian targets. Even with vsx, the default long double is ppcf128 on the big-endian targets, so LLVM calls the incorrect libcall. Also some libcalls just don't exist. I tested this with and without `rustflags = ["-C", "target-feature=+vsx"]` in the `bootstrap.toml`: ``` ./x.py test library/core --target powerpc64-unknown-linux-gnu ./x.py test library/core --target powerpc64le-unknown-linux-gnu ``` These all hit one failure, in the docs test for `library/core/src/keyword_docs.rs` where `become` is used: powerpc does not support guaranteed tail calls. Anyway, that is not relevant for f128 support. Sadly `powerpc-unknown-linux-gnu` with `+vsx` hits the issue fixed in https://github.com/llvm/llvm-project/pull/216613, I've requested a backport for the fix. r? beetrees or @tgross35 cc @Gelbpunkt
The codegen crate contains the code to convert from MIR into LLVM IR,
and then from LLVM IR into machine code. In general it contains code
that runs towards the end of the compilation process.
For more information about how codegen works, see the rustc dev guide.