Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #21887 from fneddy/fix_s390x_alignment
fix a tests that assunes the wrong alignment on s390x
| -rw-r--r-- | crates/hir-ty/src/layout/tests.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/hir-ty/src/layout/tests.rs b/crates/hir-ty/src/layout/tests.rs index 8c91be1d78..e491c29df3 100644 --- a/crates/hir-ty/src/layout/tests.rs +++ b/crates/hir-ty/src/layout/tests.rs @@ -379,6 +379,11 @@ struct Goal(Foo<S>); #[test] fn simd_types() { + let size = 16; + #[cfg(not(target_arch = "s390x"))] + let align = 16; + #[cfg(target_arch = "s390x")] + let align = 8; check_size_and_align( r#" #[repr(simd)] @@ -386,8 +391,8 @@ fn simd_types() { struct Goal(SimdType); "#, "", - 16, - 16, + size, + align, ); } |