diff options
| author | Laurențiu Nicola <lnicola@users.noreply.github.com> | 2025-07-21 06:58:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-21 06:58:10 +0000 |
| commit | 8f67bcf4b0524b2efcbeeae50d393b1b51474237 (patch) | |
| tree | 17b8a9144bf203d4f3184df4d3e471743bbffe07 /tests/codegen/simd/simd_arith_offset.rs | |
| parent | 4bbe74bb6cabb1f30775081254614ccda6985d8a (diff) | |
| parent | da90db796d0cf39658eac0074c63e5e9ffec2ff2 (diff) | |
| download | rust-8f67bcf4b0524b2efcbeeae50d393b1b51474237.tar.gz rust-8f67bcf4b0524b2efcbeeae50d393b1b51474237.zip | |
Merge pull request #20268 from lnicola/sync-from-rust
minor: Sync from downstream
Diffstat (limited to 'tests/codegen/simd/simd_arith_offset.rs')
| -rw-r--r-- | tests/codegen/simd/simd_arith_offset.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/codegen/simd/simd_arith_offset.rs b/tests/codegen/simd/simd_arith_offset.rs index b8af6fce332..210b4e9bb50 100644 --- a/tests/codegen/simd/simd_arith_offset.rs +++ b/tests/codegen/simd/simd_arith_offset.rs @@ -5,16 +5,14 @@ #![crate_type = "lib"] #![feature(repr_simd, core_intrinsics)] +#[path = "../../auxiliary/minisimd.rs"] +mod minisimd; use std::intrinsics::simd::simd_arith_offset; -/// A vector of *const T. -#[derive(Debug, Copy, Clone)] -#[repr(simd)] -pub struct SimdConstPtr<T, const LANES: usize>([*const T; LANES]); +use minisimd::*; -#[derive(Debug, Copy, Clone)] -#[repr(simd)] -pub struct Simd<T, const LANES: usize>([T; LANES]); +/// A vector of *const T. +pub type SimdConstPtr<T, const LANES: usize> = Simd<*const T, LANES>; // CHECK-LABEL: smoke #[no_mangle] |
