diff --git a/tests/codegen/issues/issue-122805.rs b/tests/codegen/issues/issue-122805.rs index 3bfffcd4a96..6a5be39238f 100644 --- a/tests/codegen/issues/issue-122805.rs +++ b/tests/codegen/issues/issue-122805.rs @@ -20,6 +20,7 @@ // CHECK-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(),