Jonathan Brouwer 656ff175cf Rollup merge of #162151 - folkertdev:ppc-itanium, r=tgross35
Test itanium mangling of `f16` and `f128`

And fix the string that is used for `f128` on powerpc targets, where the standard `"g"` is already taken by `__ibm128`.

In clang

bd5b1f58ae/clang/lib/Basic/Targets/PPC.h (L362-L363)

```c
  const char *getFloat128Mangling() const override { return "u9__ieee128"; }
  const char *getIbm128Mangling() const override { return "g"; }
```

and GCC

fc54ab94ad/gcc/config/rs6000/rs6000.cc (L20795-L20801)

```c

  if (SCALAR_FLOAT_TYPE_P (type) && FLOAT128_IBM_P (TYPE_MODE (type)))
    return "g";
  if (SCALAR_FLOAT_TYPE_P (type) && FLOAT128_IEEE_P (TYPE_MODE (type)))
    return "u9__ieee128";
```

From what i can tell this is not really testable for powerpc at the moment because CFI is not supported on powerpc.

r? tgross35
2026-09-03 12:43:00 +02:00
…
…
…
…
…
…
…
…
…
…
…

This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.

Why Rust?

  • Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.

  • Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.

  • Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).

Quick Start

Read "Installation" from The Book.

Installing from Source

If you really want to install from source (though this is not recommended), see INSTALL.md.

Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.

Contributing

See CONTRIBUTING.md.

For a detailed explanation of the compiler's architecture and how to begin contributing, see the rustc-dev-guide.

License

Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.

Trademark

The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the "Rust Trademarks").

If you want to use these names or brands, please read the Rust language trademark policy.

Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.

Description
Empowering everyone to build reliable and efficient software.
Readme 1.1 GiB
Languages
Rust 95.8%
Shell 0.9%
C 0.9%
JavaScript 0.6%
Python 0.4%
Other 1.1%