Skip to content

Commit 3e0efe2

Browse files
committed
use read_unaligned in vld1_p64
1 parent a4ca211 commit 3e0efe2

File tree

1 file changed

+2
-2
lines changed
  • crates/core_arch/src/aarch64/neon

1 file changed

+2
-2
lines changed

crates/core_arch/src/aarch64/neon/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,15 +624,15 @@ pub unsafe fn vld1q_p16(ptr: *const p16) -> poly16x8_t {
624624
#[target_feature(enable = "neon,aes")]
625625
#[cfg_attr(test, assert_instr(ldr))]
626626
pub unsafe fn vld1_p64(ptr: *const p64) -> poly64x1_t {
627-
transmute(u64x1::new(*ptr))
627+
read_unaligned(ptr.cast())
628628
}
629629

630630
/// Load multiple single-element structures to one, two, three, or four registers.
631631
#[inline]
632632
#[target_feature(enable = "neon,aes")]
633633
#[cfg_attr(test, assert_instr(ldr))]
634634
pub unsafe fn vld1q_p64(ptr: *const p64) -> poly64x2_t {
635-
transmute(u64x2::new(*ptr, *ptr.offset(1)))
635+
read_unaligned(ptr.cast())
636636
}
637637

638638
/// Load multiple single-element structures to one, two, three, or four registers.

0 commit comments

Comments
 (0)