|
From: Jeremy F. <je...@go...> - 2002-12-09 17:26:57
|
I notice you implemented the rest of the jccs. It struck me that a more
efficient pattern for the SF == OF and SF != OF (jnl/jl) tests would be:
testl $EFlagS|EFlagO, EFLAGS(%ebp)
j[n]p true
The ones which involve Z as well could use 2 jumps:
testl $EFlagZ, EFLAGS(%ebp)
j[n]z true
testl $EFlagS|EFlagO, EFLAGS(%ebp)
j[n]p true
I've tested the simple case - seems to work fine (69-simple-jlo). I
have no idea if two jumps is better or worse than the shifts and bitops,
but it does require a different code structure, so it isn't quite such a
simple patch.
J
|