From d8d1e6ce216a643362ab2cf5bf33354b9aaccefa Mon Sep 17 00:00:00 2001 From: Kai Luo Date: Mon, 8 Apr 2024 11:11:11 +0800 Subject: [PATCH] Limited to little endian target --- tests/codegen/issues/issue-122805.rs | 1 + 1 file changed, 1 insertion(+) 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(),