mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +02:00
* use the eqz instruction instead of "xor 1" in twasmwhilerepeatnode.pass_generate_code_condition for reversing the condition
git-svn-id: branches/wasm@48030 -
This commit is contained in:
parent
0fae32d2b7
commit
0a923963a9
@ -69,11 +69,9 @@ begin
|
||||
secondpass(left);
|
||||
|
||||
// reversing the condition
|
||||
// todo: there should be a better approach
|
||||
if not (lnf_checknegate in loopflags) then begin
|
||||
current_asmdata.CurrAsmList.concat(taicpu.op_const(a_i32_const,1) );
|
||||
current_asmdata.CurrAsmList.concat(taicpu.op_none(a_i32_xor) );
|
||||
end;
|
||||
if not (lnf_checknegate in loopflags) then
|
||||
current_asmdata.CurrAsmList.concat(taicpu.op_none(a_i32_eqz));
|
||||
|
||||
current_asmdata.CurrAsmList.concat(taicpu.op_const(a_br_if,1) );
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user