Limited to little endian target

This commit is contained in:
Kai Luo 2024-04-08 11:11:11 +08:00
parent a2c72ce594
commit d8d1e6ce21

View File

@ -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(),