Commit graph

40 commits

Author SHA1 Message Date
antoyo
d8e2d24738
Merge pull request #666 from FractalFir/master
Fixed a recursive inling bug, added a test for it
2025-05-11 09:50:58 -04:00
michal kostrubiec
f111416e43 Fixed a recursive inling bug, added a test for it 2025-05-10 22:24:16 +02:00
michal kostrubiec
33966ccbb6 Add a workaround for 128 bit switches 2025-05-10 00:34:54 +02:00
Antoni Boucher
9059f8cd7c Fix test 2025-04-25 10:18:12 -04:00
Antoni Boucher
5dbe271045 Merge branch 'master' into sync_from_rust_2025_04_25_2 2025-04-25 10:05:03 -04:00
Guillaume Gomez
4900dd2e5c Fix rustc_codegen_gcc/tests/run/return-tuple.rs test 2025-04-18 21:21:15 +02:00
Guillaume Gomez
8f9a32aaf8 Merge commit 'db1a31c243' into subtree-update_cg_gcc_2025-04-18 2025-04-18 21:20:11 +02:00
Antoni Boucher
ec44cfdfb4 Fix tests 2025-04-17 08:49:44 -04:00
Antoni Boucher
90c6c9f6a9 Merge branch 'master' into sync_from_rust_2025_04_17 2025-04-17 08:34:28 -04:00
Madhav Madhusoodanan
572da5cd26 cleaned up tests by bringing objects under mini_core into scope 2025-03-08 16:47:58 +05:30
Ralf Jung
15f0dca531 remove support for rustc_intrinsic_must_be_overridden from the compiler 2025-02-24 07:53:59 +01:00
Folkert de Vries
53aa977e4b
refactor and support reg_byte registers 2025-02-14 18:16:03 +01:00
Folkert de Vries
3ecc012f6f
fix clobbered or lateout registers overlapping with input registers 2025-02-13 14:59:41 +01:00
Folkert de Vries
c817210c70
handle NaN in unordered comparisons 2025-02-12 18:56:31 +01:00
Trevor Gross
24ce0a2efa Stabilize const_black_box
This has been unstably const since [1], but a tracking issue was never
created. Per discussion on Zulip [2], there should not be any blockers
to making this const-stable. The function does not provide any
functionality at compile time but does allow code reuse between const-
and non-const functions, so stabilize it here.

[1]: https://github.com/rust-lang/rust/pull/92226
[2]: https://rust-lang.zulipchat.com/#narrow/channel/146212-t-compiler.2Fconst-eval/topic/const_black_box
2025-01-27 07:54:58 +00:00
Ralf Jung
301d2478e0 remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
Antoni Boucher
43b7e28601 Merge commit '59a81c2ca1' into subtree-update_cg_gcc_2025_01_12 2025-01-13 10:53:58 -05:00
Antoni Boucher
06fdf3df2c Use mini_core in the tests 2025-01-13 08:10:53 -05:00
Antoni Boucher
c55f60805d Fix tests 2024-12-11 14:07:01 -05:00
Antoni Boucher
562aeb4c32 Merge branch 'master' into sync_from_rust_2024_12_11 2024-12-11 13:40:46 -05:00
Antoni Boucher
6a1ecf3ef5 Add read_volatile to volatile test 2024-11-18 17:03:33 -05:00
yvt
f14161ea35 Add a test for volatile loads and stores 2024-11-18 15:30:04 -05:00
Ralf Jung
f0368983da remove support for rustc_safe_intrinsic attribute; use rustc_intrinsic functions instead 2024-11-08 09:16:00 +01:00
Guillaume Gomez
bd076c303e Merge commit '3187d32079' into subtree-update 2024-09-27 22:00:17 +02:00
Folkert
bf5d862220 stabilize asm_const 2024-08-13 23:18:31 +02:00
Antoni Boucher
b70a1ec0b1 Add missing impl Copy for *mut T 2024-08-13 11:31:27 -04:00
Guillaume Gomez
c92f054085 Merge commit '98ed962c7d' into master 2024-07-10 12:44:23 +02:00
Antoni Boucher
9ca7658817 Fix tests 2024-07-02 12:27:18 -04:00
Ralf Jung
215284a490 remove StructuralEq trait 2024-01-24 07:56:23 +01:00
Antoni Boucher
9f4f90b19a Merge commit 'e4fe941b11' into subtree-update_cg_gcc_2023-10-25 2023-10-26 17:42:02 -04:00
Antoni Boucher
242a482c88 Merge commit '11a0cceab9' into subtree-update_cg_gcc_2023-10-09 2023-10-09 15:53:34 -04:00
Antoni Boucher
d725cfb6ab Merge commit '08a6d6e16b' into sync-cg_gcc-2023-03-04 2023-03-05 12:03:19 -05:00
Amanieu d'Antras
14e0e0fec3 Stabilize asm_sym 2022-10-17 22:38:37 +01:00
Urgau
4d398832a5 Stabilize bench_black_box 2022-09-27 17:38:51 +02:00
Antoni Boucher
fac57d9a06 Merge commit 'e8dca3e87d' into sync_from_cg_gcc 2022-06-06 22:04:37 -04:00
bjorn3
3888aafe3a Merge commit '39683d8eb7' into sync_cg_gcc-2022-03-26 2022-03-26 18:29:37 +01:00
bjorn3
54d2ec1a82 Merge commit '1411a98352' into sync_cg_clif-2021-12-31 2021-12-31 16:26:32 +01:00
Amanieu d'Antras
eec5f919e7 Stabilize asm! and global_asm!
They are also removed from the prelude as per the decision in
https://github.com/rust-lang/rust/issues/87228.

stdarch and compiler-builtins are updated to work with the new, stable
asm! and global_asm! macros.
2021-12-12 11:20:03 +00:00
Commeownist
7c707e4b95
Implement basic inline asm support (#72)
* Implement basic support for inline assembly

* Disable LTO

We don't support it yet at all

* Handle `inout(reg) var` correctly

Turns out that `+` readwrite output registers cannot be tied with
input variables.

* Add limited support for llvm_asm!

* Handle CHANNEL correctly

* Add support for arbitrary explicit registers

* Handle symbols properly

* Add rudimentary asm tests

* Exclude llvm_asm! tests from tests runs

* Insert `__builtin_unreachable()` after diverging asm blocks
2021-09-05 11:26:01 -04:00
Antoni Boucher
afae271d5d Initial commit 2021-08-12 21:46:50 -04:00