Skip to content

Commit

Permalink
Ingore issue-122805.rs on big endian
Browse files Browse the repository at this point in the history
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 this just means that
the function will be omitted entirely and the CHECK lines will
not match. Instead, skip the test on big endian entirely.
  • Loading branch information
nikic committed Jun 11, 2024
1 parent aec67e2 commit f2d4afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/codegen/issues/issue-122805.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//@ [OPT3LINX64] only-x86_64
//@ [OPT3WINX64] only-x86_64
//@ min-llvm-version: 18.1.3
//@ ignore-endian-big

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

0 comments on commit f2d4afd

Please sign in to comment.