From cf2dff2b1e3fa55fa5415d524200070d0d7aacfe Mon Sep 17 00:00:00 2001 From: Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:13:28 +0100 Subject: Move /src/test to /tests --- src/test/codegen/simd_arith_offset.rs | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/test/codegen/simd_arith_offset.rs (limited to 'src/test/codegen/simd_arith_offset.rs') diff --git a/src/test/codegen/simd_arith_offset.rs b/src/test/codegen/simd_arith_offset.rs deleted file mode 100644 index 7b623a22a0b..00000000000 --- a/src/test/codegen/simd_arith_offset.rs +++ /dev/null @@ -1,26 +0,0 @@ -// compile-flags: -C no-prepopulate-passes -// only-64bit (because the LLVM type of i64 for usize shows up) -// - -#![crate_type = "lib"] -#![feature(repr_simd, platform_intrinsics)] - -extern "platform-intrinsic" { - pub(crate) fn simd_arith_offset(ptrs: T, offsets: U) -> T; -} - -/// A vector of *const T. -#[derive(Debug, Copy, Clone)] -#[repr(simd)] -pub struct SimdConstPtr([*const T; LANES]); - -#[derive(Debug, Copy, Clone)] -#[repr(simd)] -pub struct Simd([T; LANES]); - -// CHECK-LABEL: smoke -#[no_mangle] -pub fn smoke(ptrs: SimdConstPtr, offsets: Simd) -> SimdConstPtr { - // CHECK: getelementptr i8, <8 x {{i8\*|ptr}}> %_3, <8 x i64> %_4 - unsafe { simd_arith_offset(ptrs, offsets) } -} -- cgit 1.4.1-3-g733a5