diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2024-08-27 01:46:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-27 01:46:50 -0500 |
| commit | f1d136b0105c2141fdc45d8af09e95ae32688f30 (patch) | |
| tree | 0f4f3ed001e5fb100e608b04a0e3a4fda0267432 /tests/codegen/patchable-function-entry | |
| parent | 9d127354250dc8424f64919a81d856cb9efe66ce (diff) | |
| parent | 7a151d546cdb4168145b6028b945422aef2cfd6f (diff) | |
| download | rust-f1d136b0105c2141fdc45d8af09e95ae32688f30.tar.gz rust-f1d136b0105c2141fdc45d8af09e95ae32688f30.zip | |
Rollup merge of #128731 - RalfJung:simd-shuffle-vector, r=workingjubilee
simd_shuffle intrinsic: allow argument to be passed as vector See https://github.com/rust-lang/rust/issues/128738 for context. I'd like to get rid of [this hack](https://github.com/rust-lang/rust/blob/6c0b89dfac65be9a5be12f938f23098ebc36c635/compiler/rustc_codegen_ssa/src/mir/block.rs#L922-L935). https://github.com/rust-lang/rust/pull/128537 almost lets us do that since constant SIMD vectors will then be passed as immediate arguments. However, simd_shuffle for some reason actually takes an *array* as argument, not a vector, so the hack is still required to ensure that the array becomes an immediate (which then later stages of codegen convert into a vector, as that's what LLVM needs). This PR prepares simd_shuffle to also support a vector as the `idx` argument. Once this lands, stdarch can hopefully be updated to pass `idx` as a vector, and then support for arrays can be removed, which finally lets us get rid of that hack.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions
