rust/tests
Jacob Pratt a1c543e165
Rollup merge of #145382 - winstonallo:reg-struct-return-asm-test, r=tgross35
Add assembly test for `-Zreg-struct-return` option

r? `@tgross35`

As discussed in rust-lang/rust#145309 with `@tgross35` and `@ojeda,` I added assembly tests for the `-Zreg-struct-return` option verifying that it changes the ABI from hidden pointer to register-return on x86_32.

The test covers:
- Direct struct construction, showing register return vs hidden pointer
- External function calls returning structs, showing ABI mismatch handling

Different memory layouts affect ABI mismatch handling, but register returns use the same register allocation regardless of struct field layout (apart from the fact that they use smaller registers for smaller structs, of course).

[Here](https://godbolt.org/z/dcW6rnMG3) is a compiler explorer with 2 examples. Let me know if there is anything more I could add. Since register returns only happen for structs up to the size of 2 registers, I figured testing the pivot value (8 bytes) would be most critical.
2025-08-27 21:51:52 -04:00
..
assembly-llvm Rollup merge of #145382 - winstonallo:reg-struct-return-asm-test, r=tgross35 2025-08-27 21:51:52 -04:00
auxiliary Set NumRegisterParameters LLVM module flag to N when -Zregparm=N is 2025-08-13 17:37:30 +02:00
codegen-llvm Rollup merge of #145380 - okaneco:add-codegen-tests, r=Mark-Simulacrum 2025-08-22 22:00:50 -04:00
codegen-units Auto merge of #142893 - Mark-Simulacrum:no-const-collect, r=oli-obk 2025-06-27 12:57:05 +00:00
coverage coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
coverage-run-rustdoc
crashes Rollup merge of #145905 - TaKO8Ki:fix-137580, r=nnethercote 2025-08-27 11:26:52 +02:00
debuginfo Rollup merge of #145745 - heiher:ignore-basic-stepping, r=lqd 2025-08-22 22:00:58 -04:00
incremental Bless incremental tests. 2025-07-13 13:50:01 +00:00
mir-opt Use -Zmir-opt-level=0 in tests for MIR building 2025-08-26 23:42:38 -04:00
pretty Update autodiff tests for the new intrinsics impl 2025-08-14 18:33:43 +00:00
run-make Update tests/run-make/rustdoc-default-output/ output 2025-08-23 12:15:37 +02:00
rustdoc Auto merge of #137229 - GuillaumeGomez:expand-macro, r=lolbinarycat 2025-08-24 19:46:17 +00:00
rustdoc-gui Auto merge of #137229 - GuillaumeGomez:expand-macro, r=lolbinarycat 2025-08-24 19:46:17 +00:00
rustdoc-js rustdoc: add tests for raw pointers in type-based search 2025-08-21 17:50:12 -05:00
rustdoc-js-std tests/rustdoc-js-std/parser-errors.js: remove syntax that is now valid 2025-08-21 20:50:33 -05:00
rustdoc-json rustdoc-json: Move #[macro_export] from Other to it's own variant 2025-07-30 19:57:32 +00:00
rustdoc-ui Rollup merge of #145535 - lolbinarycat:rustdoc-invalid_html_tags-svg-145529, r=GuillaumeGomez 2025-08-26 14:19:16 +10:00
ui Auto merge of #145923 - matthiaskrgr:rollup-rkejtos, r=matthiaskrgr 2025-08-27 12:35:21 +00:00
ui-fulldeps On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
COMPILER_TESTS.md