Files
rust/compiler/rustc_codegen_llvm
Jonathan Brouwer e69c8f3380 Rollup merge of #162979 - folkertdev:ppc-enable-f128, r=beetrees
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
2026-09-19 08:45:38 +02:00
..
2026-08-31 20:48:05 +02:00
…

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.