mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
factor some comparison emitting code
This commit is contained in:
parent
0c5b683658
commit
23846dd534
@ -185,10 +185,7 @@ seljmp(Blk *b, Fn *fn)
|
||||
} else
|
||||
b->jmp.type = JXJc + Cne;
|
||||
} else {
|
||||
if (islong(r, fn))
|
||||
emit(OXCmpl, R, CON_Z, r);
|
||||
else
|
||||
emit(OXCmpw, R, CON_Z, r);
|
||||
selcmp((Ref[2]){r, CON_Z}, fn);
|
||||
b->jmp.type = JXJc + Cne;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user