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:
parent
a552144515
commit
4c6bf3801f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue