Commit graph

1798 commits

Author SHA1 Message Date
g4titanx
ce5a198239 add contibuting.md 2025-04-29 17:59:56 -04:00
antoyo
72b6614bee
Merge pull request #654 from rust-lang/sync_from_rust_2025_04_26
Sync from rust 2025/04/26
2025-04-26 16:22:27 -04:00
Antoni Boucher
3893560e69 Update to nightly-2025-04-26 2025-04-26 16:02:17 -04:00
Antoni Boucher
612d7f5e03 Merge branch 'master' into sync_from_rust_2025_04_26 2025-04-26 15:58:19 -04:00
antoyo
f894c1b325
Merge pull request #653 from Urgau/triagebot-issue-links-no-mentions
Enable `[no-mentions]` and `[issue-links]` in `rustbot`
2025-04-25 18:05:31 -04:00
Urgau
84c5fd784e Enable [no-mentions] and [issue-links] in rustbot 2025-04-25 22:35:58 +02:00
Antoni Boucher
61d1c13b3e Merge commit '4f83a4258d' into subtree-update_cg_gcc_2025-04-25 2025-04-25 10:44:19 -04:00
antoyo
4f83a4258d
Merge pull request #652 from rust-lang/sync_from_rust_2025_04_25_2
Sync from rust 2025/04/25
2025-04-25 10:41:04 -04:00
Antoni Boucher
9059f8cd7c Fix test 2025-04-25 10:18:12 -04:00
Antoni Boucher
5e5ad10bc6 Fix clippy warnings 2025-04-25 10:10:50 -04:00
Antoni Boucher
79339104b1 Update to nightly-2025-04-25 2025-04-25 10:05:35 -04:00
Antoni Boucher
5dbe271045 Merge branch 'master' into sync_from_rust_2025_04_25_2 2025-04-25 10:05:03 -04:00
bendn
338e7388ea Suggest {to,from}_ne_bytes for transmutations between arrays and integers, etc 2025-04-24 13:14:36 +07:00
Chris Denton
ccbcbee5e7 Rollup merge of #137953 - RalfJung:simd-intrinsic-masks, r=WaffleLapkin
simd intrinsics with mask: accept unsigned integer masks, and fix some of the errors

It's not clear at all why the mask would have to be signed, it is anyway interpreted bitwise. The backend should just make sure that works no matter the surface-level type; our LLVM backend already does this correctly. The note of "the mask may be widened, which only has the correct behavior for signed integers" explains... nothing? Why can't the code do the widening correctly? If necessary, just cast to the signed type first...

Also while we are at it, fix the errors. For simd_masked_load/store, the errors talked about the "third argument" but they meant the first argument (the mask is the first argument there). They also used the wrong type for `expected_element`.

I have extremely low confidence in the GCC part of this PR.

See [discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/channel/257879-project-portable-simd/topic/On.20the.20sign.20of.20masks)
2025-04-20 13:02:48 +00:00
Ralf Jung
fc4afeafc1 simd intrinsics with mask: accept unsigned integer masks 2025-04-20 12:25:27 +02:00
Guillaume Gomez
e32e494097 Fix import 2025-04-19 00:08:03 +02:00
Guillaume Gomez
acdd3b729f Fix compilation error in GCC backend 2025-04-18 22:46:43 +02: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
antoyo
db1a31c243
Merge pull request #650 from rust-lang/sync_from_rust_2025_04_17
Sync from rust 2025/04/17
2025-04-18 12:43:27 -04:00
Antoni Boucher
52b06872fe Simplify handling of some SIMD intrinsics 2025-04-18 12:07:10 -04:00
Antoni Boucher
98dd5a30b3 Fix for libgccjit 12 2025-04-18 11:45:30 -04:00
Antoni Boucher
65b87aae21 Support new target builtins 2025-04-18 11:21:32 -04:00
Antoni Boucher
06af88e06c Add new failing test 2025-04-17 08:50:09 -04:00
Antoni Boucher
4b5940ad77 Fix overflow operations 2025-04-17 08:50:06 -04:00
Antoni Boucher
0d773175cc Add support for simd_insert_dyn and simd_extract_dyn 2025-04-17 08:50:02 -04:00
Antoni Boucher
bb1e6a3193 Fix tests 2025-04-17 08:49:55 -04:00
Antoni Boucher
6504f4c09c Format 2025-04-17 08:49:52 -04:00
Antoni Boucher
bc0bc8d5e1 Fix int_to_float_cast for f128 2025-04-17 08:49:49 -04:00
Antoni Boucher
ec44cfdfb4 Fix tests 2025-04-17 08:49:44 -04:00
Antoni Boucher
ecf0a1eea3 Update GCC version 2025-04-17 08:49:41 -04:00
Antoni Boucher
5cf2bbc4e2 Fix clippy warnings 2025-04-17 08:49:37 -04:00
Antoni Boucher
f9822772e8 Fix libcore tests 2025-04-17 08:49:33 -04:00
Antoni Boucher
9a453d46f4 Update other patches 2025-04-17 08:49:30 -04:00
Antoni Boucher
e1fa74b4a9 Implement copysignf128 2025-04-17 08:49:24 -04:00
Antoni Boucher
5c832e5ece Remove most of builtins hack since it's not necessary anymore 2025-04-17 08:49:21 -04:00
Antoni Boucher
be75a58538 Fix compilation 2025-04-17 08:49:15 -04:00
Antoni Boucher
cc81c706e4 Fix patches 2025-04-17 08:49:08 -04:00
Antoni Boucher
c1d21003bb Update to nightly-2025-04-17 2025-04-17 08:34:54 -04:00
Antoni Boucher
90c6c9f6a9 Merge branch 'master' into sync_from_rust_2025_04_17 2025-04-17 08:34:28 -04:00
Michael Goulet
22d3c0d70a Prepend temp files with a string per invocation of rustc 2025-04-07 20:48:40 +00:00
Michael Goulet
3c3a6a2995 Simplify temp path creation a bit 2025-04-07 20:48:40 +00:00
Matthias Krüger
3670f39732 Rollup merge of #138949 - madsmtm:rename-to-darwin, r=WaffleLapkin
Rename `is_like_osx` to `is_like_darwin`

Replace `is_like_osx` with `is_like_darwin`, which more closely describes reality (OS X is the pre-2016 name for macOS, and is by now quite outdated; Darwin is the overall name for the OS underlying Apple's macOS, iOS, etc.).

``@rustbot`` label O-apple
r? compiler
2025-04-04 08:02:05 +02:00
bors
de1dd8beee Auto merge of #138503 - bjorn3:string_merging, r=tmiasko
Avoid wrapping constant allocations in packed structs when not necessary

This way LLVM will set the string merging flag if the alloc is a nul terminated string, reducing binary sizes.

try-job: armhf-gnu
2025-03-28 10:18:32 +00:00
bjorn3
2f5aa084c8 Avoid wrapping constant allocations in packed structs when not necessary
This way LLVM will set the string merging flag if the alloc is a nul
terminated string, reducing binary sizes.
2025-03-28 09:19:57 +00:00
Mads Marquart
5743d381af Rename is_like_osx to is_like_darwin 2025-03-25 21:53:52 +01:00
bjorn3
b25a593b40 Remove implicit #[no_mangle] for #[rustc_std_internal_symbol] 2025-03-17 14:08:09 +00:00
Ralf Jung
7989568b8e intrinsics: remove unnecessary leading underscore from argument names 2025-03-12 08:04:09 +01:00
bors
b80255427c Auto merge of #137586 - nnethercote:SetImpliedBits, r=bjorn3
Speed up target feature computation

The LLVM backend calls `LLVMRustHasFeature` twice for every feature. In short-running rustc invocations, this accounts for a surprising amount of work.

r? `@bjorn3`
2025-03-11 12:05:16 +00:00
Matthias Krüger
454b083b56 Rollup merge of #138040 - thaliaarchi:use-prelude-size-of.compiler, r=compiler-errors
compiler: Use `size_of` from the prelude instead of imported

Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. Apply this change across the compiler.

These functions were added to all preludes in Rust 1.80.

r? ``@compiler-errors``
2025-03-09 10:34:49 +01:00