diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-05-04 18:11:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-04 18:11:48 -0400 |
| commit | 82b792358ce8d06d49909b1a1e81896ca39b4f14 (patch) | |
| tree | 6f3bf1abad302baaaa0d28356fd2d8e56042c923 /tests/codegen/const-vector.rs | |
| parent | fcb9da597abc6629bc645b14e79e16744830c994 (diff) | |
| parent | f831670519586bca8093d0913861d06270c7dfac (diff) | |
| download | rust-82b792358ce8d06d49909b1a1e81896ca39b4f14.tar.gz rust-82b792358ce8d06d49909b1a1e81896ca39b4f14.zip | |
Rollup merge of #140457 - fneddy:fix_s390x_codegen_const_vector, r=Mark-Simulacrum
Use target-cpu=z13 on s390x codegen const vector test The default s390x cpu(z10) does not have vector support. Setting target-cpu at least to z13 enables vectorisation for s390x architecture and makes the test pass.
Diffstat (limited to 'tests/codegen/const-vector.rs')
| -rw-r--r-- | tests/codegen/const-vector.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/codegen/const-vector.rs b/tests/codegen/const-vector.rs index 289b67371ce..42921442e03 100644 --- a/tests/codegen/const-vector.rs +++ b/tests/codegen/const-vector.rs @@ -1,4 +1,8 @@ -//@ compile-flags: -C no-prepopulate-passes -Copt-level=0 +//@ revisions: OPT0 OPT0_S390X +//@ [OPT0] ignore-s390x +//@ [OPT0_S390X] only-s390x +//@ [OPT0] compile-flags: -C no-prepopulate-passes -Copt-level=0 +//@ [OPT0_S390X] compile-flags: -C no-prepopulate-passes -Copt-level=0 -C target-cpu=z13 // This test checks that constants of SIMD type are passed as immediate vectors. // We ensure that both vector representations (struct with fields and struct wrapping array) work. |
