Fix asm! options for _mm_mask_load_sh and _mm_maskz_load_sh

These functions read from a pointer, so `readonly` has to be used instead of `nomem`.
This commit is contained in:
Eduardo Sánchez Muñoz 2024-11-09 16:17:16 +01:00 committed by Amanieu d'Antras
parent a552144515
commit 4c6bf3801f

View file

@ -1107,7 +1107,7 @@ pub unsafe fn _mm_mask_load_sh(src: __m128h, k: __mmask8, mem_addr: *const f16)
dst = inout(xmm_reg) dst,
k = in(kreg) k,
p = in(reg) mem_addr,
options(pure, nomem, nostack, preserves_flags)
options(pure, readonly, nostack, preserves_flags)
);
dst
}
@ -1126,7 +1126,7 @@ pub unsafe fn _mm_maskz_load_sh(k: __mmask8, mem_addr: *const f16) -> __m128h {
dst = out(xmm_reg) dst,
k = in(kreg) k,
p = in(reg) mem_addr,
options(pure, nomem, nostack, preserves_flags)
options(pure, readonly, nostack, preserves_flags)
);
dst
}