mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-20 12:16:30 +00:00
Fix i64.atomic.load32_u and all alignment checks.
This commit is contained in:
@ -499,7 +499,7 @@ fn trap_if_misaligned(
|
|||||||
memarg: &MemoryImmediate,
|
memarg: &MemoryImmediate,
|
||||||
ptr: PointerValue,
|
ptr: PointerValue,
|
||||||
) {
|
) {
|
||||||
let align = match memarg.flags & 2 {
|
let align = match memarg.flags & 3 {
|
||||||
0 => 1,
|
0 => 1,
|
||||||
1 => 2,
|
1 => 2,
|
||||||
2 => 4,
|
2 => 4,
|
||||||
@ -4641,7 +4641,7 @@ impl FunctionCodeGenerator<CodegenError> for LLVMFunctionCodeGenerator {
|
|||||||
&mut state,
|
&mut state,
|
||||||
&mut ctx,
|
&mut ctx,
|
||||||
memarg,
|
memarg,
|
||||||
intrinsics.i16_ptr_ty,
|
intrinsics.i32_ptr_ty,
|
||||||
4,
|
4,
|
||||||
)?;
|
)?;
|
||||||
trap_if_misaligned(
|
trap_if_misaligned(
|
||||||
|
Reference in New Issue
Block a user