Skip to content

Commit 82b7923

Browse files
authored
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.
2 parents fcb9da5 + f831670 commit 82b7923

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/codegen/const-vector.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
//@ compile-flags: -C no-prepopulate-passes -Copt-level=0
1+
//@ revisions: OPT0 OPT0_S390X
2+
//@ [OPT0] ignore-s390x
3+
//@ [OPT0_S390X] only-s390x
4+
//@ [OPT0] compile-flags: -C no-prepopulate-passes -Copt-level=0
5+
//@ [OPT0_S390X] compile-flags: -C no-prepopulate-passes -Copt-level=0 -C target-cpu=z13
26

37
// This test checks that constants of SIMD type are passed as immediate vectors.
48
// We ensure that both vector representations (struct with fields and struct wrapping array) work.

0 commit comments

Comments
 (0)