Commit Graph

7 Commits

Author SHA1 Message Date
Jacob Pratt
f28dc242de Rollup merge of #162883 - tgross35:f16-f128-autoinline, r=saethlin
No longer auto-inline `f16` and `f128` on well-supported platforms

In 5d818914af ("Always inline functions signatures containing `f16` or `f128`"), these types were changed to automatically inline so codegen wouldn't crash on poorly-supported platforms. We have since gained a cfg to reflect the type's codegen reliability. Update so we only check and auto-inline based on type if this config is set, which makes `f16` and `f128` act more like any other type on most platforms.

We still can't remove this entirely since a lot of API in `std` wouldn't get inlined and would crash the few remaining poorly-supported backend+target combinations.

Followup to https://github.com/rust-lang/rust/pull/133050.
2026-09-26 01:33:15 -04:00
WANG Rui
41ae947f50 tests: Update f16b codegen test for LoongArch and RISC-V
Add target-specific revisions to the `f16b` codegen test to account for
LoongArch and RISC-V lowering `f16b` to LLVM `half` rather than `bfloat`.
2026-09-23 00:57:13 +08:00
James Barford-Evans
e130380227 Update and write tests 2026-09-21 08:57:52 +01:00
Trevor Gross
66f69fc2ff No longer auto-inline f16 and f128 on well-supported platforms
In 5d818914af ("Always inline functions signatures containing `f16` or
`f128`"), these types were changed to automatically inline so codegen
wouldn't crash on poorly-supported platforms. We have since gained a cfg
to reflect the type's codegen reliability. Update so we only check and
auto-inline based on type if this config is set, which makes `f16` and
`f128` act more like any other type on most platforms.

We still can't remove this entirely since a lot of API in `std` wouldn't
get inlined and would crash the few remaining poorly-supported
backend+target combinations.
2026-09-17 01:16:07 -04:00
Tim Neumann
4c28ae248a LLVM 24: configure float-abi via module flag 2026-08-19 18:31:26 +02:00
Elliott Pierce
d69bd08f96 stabilize feature float_algebraic
* stabilize feature float_algebraic
* fixed algrebracis for `f16` and `f128`
2026-06-15 00:56:07 +00:00
Guillaume Gomez
a27f3e3fd1 Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00