Skip to content

Commit 562f184

Browse files
committed
Ignore issue-122805.rs on big endian
Due to the use of to_be(), this codegen test is only applicable to little-endian. The test tries to handle this via `#[cfg(target_endian = "little")]`, which means that the function will be omitted entirely and the CHECK lines will not match. Instead, skip the test on big endian entirely.
1 parent aec67e2 commit 562f184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/codegen/issues/issue-122805.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//@ [OPT3LINX64] only-x86_64
88
//@ [OPT3WINX64] only-x86_64
99
//@ min-llvm-version: 18.1.3
10+
//@ ignore-endian-big
1011

1112
#![crate_type = "lib"]
1213
#![no_std]
@@ -39,7 +40,6 @@
3940
// OPT3WINX64-NEXT: store <8 x i16>
4041
// CHECK-NEXT: ret void
4142
#[no_mangle]
42-
#[cfg(target_endian = "little")]
4343
pub fn convert(value: [u16; 8]) -> [u8; 16] {
4444
let addr16 = [
4545
value[0].to_be(),

0 commit comments

Comments
 (0)