diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2023-07-29 14:57:53 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2023-07-29 15:49:07 -0700 |
| commit | 20ebbf467d5bc6eca39ca014c4258aa6835b18db (patch) | |
| tree | 8ee9c2a2e7fbb374a850742ce90e60ebab770e6c /tests/codegen/repr/transparent-struct-ptr.rs | |
| parent | 040bc3447e3d43ce79dee8420f4ab05d6aa3a8c7 (diff) | |
| download | rust-20ebbf467d5bc6eca39ca014c4258aa6835b18db.tar.gz rust-20ebbf467d5bc6eca39ca014c4258aa6835b18db.zip | |
Replace ignore-everything with only-arch
Combining revisions with only-arch allows specifying that a test only applies to a handful of targets. This allows removing a large amount of repetition in the test suite for tests that do not benefit. The revisions are suboptimal for this for some tests, so they aren't preferred in those cases.
Diffstat (limited to 'tests/codegen/repr/transparent-struct-ptr.rs')
| -rw-r--r-- | tests/codegen/repr/transparent-struct-ptr.rs | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/codegen/repr/transparent-struct-ptr.rs b/tests/codegen/repr/transparent-struct-ptr.rs index c783a75a400..d2120f7ec14 100644 --- a/tests/codegen/repr/transparent-struct-ptr.rs +++ b/tests/codegen/repr/transparent-struct-ptr.rs @@ -1,18 +1,16 @@ +// revisions: x32 x64 sparc sparc64 // compile-flags: -O -C no-prepopulate-passes // - -// ignore-arm -// ignore-aarch64 -// ignore-mips -// ignore-mips64 -// ignore-powerpc -// ignore-powerpc64 -// ignore-riscv64 see codegen/riscv-abi -// ignore-s390x +//[x32] only-x86 +//[x64] only-x86_64 +//[sparc] only-sparc +//[sparc64] only-sparc64 // ignore-windows -// ignore-loongarch64 -// ignore-wasm32-bare -// See repr-transparent.rs +// See ./transparent.rs +// Some platforms pass large aggregates using immediate arrays in LLVMIR +// Other platforms pass large aggregates using struct pointer in LLVMIR +// This covers the "struct pointer" case. + #![feature(transparent_unions)] |
