Skip to content

Commit f831670

Browse files
committed
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.
1 parent 7d65abf commit f831670

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/codegen/const-vector.rs

Lines changed: 5 additions & 1 deletion
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)