<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/codegen/simd, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-22T12:28:48+00:00</updated>
<entry>
<title>Rename `tests/codegen` into `tests/codegen-llvm`</title>
<updated>2025-07-22T12:28:48+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-07-21T12:34:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a27f3e3fd1e4d16160f8885b6b06665b5319f56c'/>
<id>urn:sha1:a27f3e3fd1e4d16160f8885b6b06665b5319f56c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Ban projecting into SIMD types [MCP838]</title>
<updated>2025-07-20T17:22:09+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2025-03-07T03:13:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=41ce1ed252f194756fb2f3e3e92bbdfb3940088d'/>
<id>urn:sha1:41ce1ed252f194756fb2f3e3e92bbdfb3940088d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>So many test updates x_x</title>
<updated>2025-07-20T17:15:14+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2025-07-12T09:33:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=08b816ff18347031b1160f1257cde2008c3c366e'/>
<id>urn:sha1:08b816ff18347031b1160f1257cde2008c3c366e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Let `rvalue_creates_operand` return true for *all* `Rvalue::Aggregate`s</title>
<updated>2025-07-08T06:08:10+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2025-07-05T06:16:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8cf2c71243f8c093e7728370e6653aa940dbaf22'/>
<id>urn:sha1:8cf2c71243f8c093e7728370e6653aa940dbaf22</id>
<content type='text'>
Inspired by &lt;https://github.com/rust-lang/rust/pull/138759#discussion_r2156375342&gt; where I noticed that we were nearly at this point, plus the comments I was writing in 143410 that reminded me a type-dependent `true` is fine.

This PR splits the `OperandRef::builder` logic out to a separate type, with the updates needed to handle SIMD as well.  In doing so, that makes the existing `Aggregate` path in `codegen_rvalue_operand` capable of handing SIMD values just fine.

As a result, we no longer need to do layout calculations for aggregate result types when running the analysis to determine which things can be SSA in codegen.

</content>
</entry>
<entry>
<title>x86 (32/64): go back to passing SIMD vectors by-ptr</title>
<updated>2025-06-04T06:38:49+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-05-20T19:53:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=321db85fb4fa58fc03e86a3a7a901ff7fb624583'/>
<id>urn:sha1:321db85fb4fa58fc03e86a3a7a901ff7fb624583</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix test simd/extract-insert-dyn on s390x</title>
<updated>2025-05-03T08:15:32+00:00</updated>
<author>
<name>Eduard Stefes</name>
<email>eduard.stefes@ibm.com</email>
</author>
<published>2025-04-28T20:25:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=61488e5070b0af9697250af27df5d0aa36fe7c73'/>
<id>urn:sha1:61488e5070b0af9697250af27df5d0aa36fe7c73</id>
<content type='text'>
Fix the test for s390x by enabling s390x vector extension via
`target_feature(enable = "vector")`(#127506). As this is is still
gated by `#![feature(s390x_target_feature)]` we need that attribute
also.
</content>
</entry>
<entry>
<title>enable msa feature for mips in codegen tests</title>
<updated>2025-04-29T08:20:25+00:00</updated>
<author>
<name>Adrian Friedli</name>
<email>adrian.friedli@husqvarnagroup.com</email>
</author>
<published>2025-04-29T08:20:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf12e290fd5e356cef3c9d95643ea4dd4b093dfd'/>
<id>urn:sha1:cf12e290fd5e356cef3c9d95643ea4dd4b093dfd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wasm, arm, x86-without-SSE need simd to be explicitly enabled</title>
<updated>2025-04-23T12:01:08+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-04-22T06:48:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=216fac3c23c003af77c140ccd4b11168a0ea1da3'/>
<id>urn:sha1:216fac3c23c003af77c140ccd4b11168a0ea1da3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #139578 - ferrocene:pa-compiletest-edition, r=jieyouxu</title>
<updated>2025-04-11T10:53:45+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-04-11T10:53:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=71b68da1bd9fa6afb9f964a731e9c843ab0862bd'/>
<id>urn:sha1:71b68da1bd9fa6afb9f964a731e9c843ab0862bd</id>
<content type='text'>
Fix breakage when running compiletest with `--test-args=--edition=2015`

Compiletest has an `--edition` flag to change the default edition tests are run with. Unfortunately no test suite successfully executes when that flag is passed. If the edition is set to something greater than 2015 the breakage is expected, since the test suite currently supports only edition 2015 (Ferrous Systems will open an MCP about fixing that soonish). Surprisingly, the test suite is also broken if `--edition=2015` is passed to compiletest. This PR focuses on fixing the latter.

This PR fixes the two categories of failures happening when `--edition=2015` is passed:

* Some edition-specific tests set their edition through `//@ compile-flags` instead of `//@ edition`. Compiletest doesn't parse the compile flags, so it would see no `//@ edition` and add another `--edition` flag, leading to a rustc error.
* Compiletest would add the edition after `//@ compile-flags`, while some tests depend on flags passed to `//@ compile-flags` being the last flags in the rustc invocation.

Note that for the first category, I opted to manually go and replace all `//@ compile-flags` setting an edition with an explicit `//@ edition`. We could've changed compiletest to instead check whether an edition was set in `//@ compile-flags`, but I thought it was better to enforce a consistent way to set the edition in tests.

I also added the edition to the stamp, so that changing `--edition` results in tests being re-executed.

r? `@jieyouxu`
</content>
</entry>
<entry>
<title>Rollup merge of #137447 - folkertdev:simd-extract-insert-dyn, r=scottmcm</title>
<updated>2025-04-11T03:31:43+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-04-11T03:31:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=45ebc4060b54009ef32fbcb91e26621e8380abd4'/>
<id>urn:sha1:45ebc4060b54009ef32fbcb91e26621e8380abd4</id>
<content type='text'>
add `core::intrinsics::simd::{simd_extract_dyn, simd_insert_dyn}`

fixes https://github.com/rust-lang/rust/issues/137372

adds `core::intrinsics::simd::{simd_extract_dyn, simd_insert_dyn}`, which contrary to their non-dyn counterparts allow a non-const index. Many platforms (but notably not x86_64 or aarch64) have dedicated instructions for this operation, which stdarch can emit with this change.

Future work is to also make the `Index` operation on the `Simd` type emit this operation, but the intrinsic can't be used directly. We'll need some MIR shenanigans for that.

r? `@ghost`
</content>
</entry>
</feed>
