We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53d4476 + 15e1a66 commit 53e75a5Copy full SHA for 53e75a5
tests/codegen/dont-shuffle-bswaps.rs
@@ -1,8 +1,11 @@
1
-//@ revisions: OPT2 OPT3
+//@ revisions: OPT2 OPT3 OPT3_S390X
2
//@[OPT2] compile-flags: -Copt-level=2
3
//@[OPT3] compile-flags: -C opt-level=3
4
// some targets don't do the opt we are looking for
5
//@[OPT3] only-64bit
6
+//@[OPT3] ignore-s390x
7
+//@[OPT3_S390X] compile-flags: -C opt-level=3 -C target-cpu=z13
8
+//@[OPT3_S390X] only-s390x
9
10
#![crate_type = "lib"]
11
#![no_std]
@@ -17,6 +20,10 @@
17
20
// OPT3-NEXT: call <8 x i16> @llvm.bswap
18
21
// OPT3-NEXT: store <8 x i16>
19
22
// OPT3-NEXT: ret void
23
+// OPT3_S390X: load <8 x i16>
24
+// OPT3_S390X-NEXT: call <8 x i16> @llvm.bswap
25
+// OPT3_S390X-NEXT: store <8 x i16>
26
+// OPT3_S390X-NEXT: ret void
27
#[no_mangle]
28
pub fn convert(value: [u16; 8]) -> [u8; 16] {
29
#[cfg(target_endian = "little")]
0 commit comments