Skip to content

aarch64_be not compiling #3155

@Its-Just-Nans

Description

@Its-Just-Nans

I'm trying to run a simple example code with aarch64

#[cfg(target_arch = "aarch64")] 
#[test]
fn test_aarch64() {
    use core::arch::aarch64::uint16x4_t;
    use crate::transmute;
    let v: &[u16; 4] = &[1, 2, 3, 4];
    let vec: uint16x4_t = transmute!(*v);
}

But this is not working with

cargo +nightly miri test --target aarch64-unknown-linux-gnu
cargo +nightly miri test --target aarch64_be-unknown-linux-gnu
transmute(e)
 ^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `std::arch::aarch64::uint16x4_t`

Do you have an idea why it's not working?

Also, the issue rust-lang/stdarch#1484 linked to

zerocopy/src/impls.rs

Lines 1355 to 1356 in 61b2407

// NOTE(https://github.com/rust-lang/stdarch/issues/1484): NEON intrinsics are currently
// broken on big-endian platforms.

is now closed, is this comment still useful ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions