mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
tcg/i386: Optimize cmpsel with constant 0 operand 3.
These can be simplified to and/andc, avoiding the load of the zero into a register. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
e58b977238
commit
d8387f0ee0
3 changed files with 27 additions and 8 deletions
|
@ -50,7 +50,7 @@ C_N1_I2(r, r, r)
|
|||
C_N1_I2(r, r, rW)
|
||||
C_O1_I3(x, 0, x, x)
|
||||
C_O1_I3(x, x, x, x)
|
||||
C_O1_I4(x, x, x, x, x)
|
||||
C_O1_I4(x, x, x, xO, x)
|
||||
C_O1_I4(r, r, reT, r, 0)
|
||||
C_O1_I4(r, r, r, ri, ri)
|
||||
C_O2_I1(r, r, L)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue