diff options
| author | bors <bors@rust-lang.org> | 2024-11-15 03:29:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-15 03:29:57 +0000 |
| commit | 251dc8ad84492c792a7600d8c5fef2ec868a36a7 (patch) | |
| tree | 408d1872bb5daa7cf37951d812d5f97ee3f76b57 /tests/codegen/float | |
| parent | 3bc6916f4ca50bb83b211d9013dac38e84618750 (diff) | |
| parent | efe2c44269ecf916d3c200bedfba0b211431d32a (diff) | |
| download | rust-251dc8ad84492c792a7600d8c5fef2ec868a36a7.tar.gz rust-251dc8ad84492c792a7600d8c5fef2ec868a36a7.zip | |
Auto merge of #133059 - workingjubilee:rollup-rc5kvr1, r=workingjubilee
Rollup of 8 pull requests
Successful merges:
- #132790 (Add as_slice/into_slice for IoSlice/IoSliceMut.)
- #132905 ([AIX] Add crate "unwind" to link with libunwind)
- #132977 (Fix compilation error on Solaris due to flock usage)
- #132984 ([illumos] use pipe2 to create anonymous pipes)
- #133019 (docs: Fix missing period and colon in methods for primitive types)
- #133048 (use `&raw` in `{read, write}_unaligned` documentation)
- #133050 (Always inline functions signatures containing `f16` or `f128`)
- #133053 (tests: Fix the SIMD FFI tests with certain x86 configuration)
r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/codegen/float')
| -rw-r--r-- | tests/codegen/float/f16-f128-inline.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/codegen/float/f16-f128-inline.rs b/tests/codegen/float/f16-f128-inline.rs new file mode 100644 index 00000000000..aa2c38c209e --- /dev/null +++ b/tests/codegen/float/f16-f128-inline.rs @@ -0,0 +1,29 @@ +//@ revisions: default nopt +//@[nopt] compile-flags: -Copt-level=0 -Zcross-crate-inline-threshold=never -Zmir-opt-level=0 -Cno-prepopulate-passes + +// Ensure that functions using `f16` and `f128` are always inlined to avoid crashes +// when the backend does not support these types. + +#![crate_type = "lib"] +#![feature(f128)] +#![feature(f16)] + +pub fn f16_arg(_a: f16) { + // CHECK-NOT: f16_arg + todo!() +} + +pub fn f16_ret() -> f16 { + // CHECK-NOT: f16_ret + todo!() +} + +pub fn f128_arg(_a: f128) { + // CHECK-NOT: f128_arg + todo!() +} + +pub fn f128_ret() -> f128 { + // CHECK-NOT: f128_ret + todo!() +} |
