mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-06-07 05:39:16 +00:00
Only handle one const case in DEF_UNI_INT_CONST_OPS
(#1122)
`DEF_UNI_INT_CONST_OPS` handle the case of both consts
This commit is contained in:
parent
0377aec027
commit
26c4a7ca33
|
@ -713,15 +713,6 @@ DEF_UNI_INT_CONST_OPS(xor)
|
||||||
if (IS_CONST_ZERO(right))
|
if (IS_CONST_ZERO(right))
|
||||||
return left;
|
return left;
|
||||||
|
|
||||||
if (is_i32) {
|
|
||||||
if (jit_cc_get_const_I32(cc, left) == jit_cc_get_const_I32(cc, right))
|
|
||||||
return NEW_CONST(I32, 0);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if (jit_cc_get_const_I64(cc, left) == jit_cc_get_const_I64(cc, right))
|
|
||||||
return NEW_CONST(I64, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user