]> git.lizzy.rs Git - rust.git/blob - tests/codegen/unpadded-simd.rs
Rollup merge of #106106 - jyn514:remote-tracking-branch, r=Mark-Simulacrum
[rust.git] / tests / codegen / unpadded-simd.rs
1 // Make sure that no 0-sized padding is inserted in structs and that
2 // structs are represented as expected by Neon intrinsics in LLVM.
3 // See #87254.
4
5 #![crate_type = "lib"]
6 #![feature(repr_simd)]
7
8 #[derive(Copy, Clone, Debug)]
9 #[repr(simd)]
10 pub struct int16x4_t(pub i16, pub i16, pub i16, pub i16);
11
12 #[derive(Copy, Clone, Debug)]
13 pub struct int16x4x2_t(pub int16x4_t, pub int16x4_t);
14 // CHECK: %int16x4x2_t = type { <4 x i16>, <4 x i16> }