At least one litmus test translation contains the stanza:
sete %AL
testb %AL, %AL
jne L3
This appears to be a very clumsy way of saying:
%AL <- zero flag
zero flag <- not %AL
jump if zero flag is now 0
In other words, je L3.
I'm not sure how this should generalise to other possible instances of this pattern, but a pass to detect entirely the specific version above and swap it out wouldn't be too hard.
At least one litmus test translation contains the stanza:
This appears to be a very clumsy way of saying:
%AL
<- zero flag%AL
In other words,
je L3
.I'm not sure how this should generalise to other possible instances of this pattern, but a pass to detect entirely the specific version above and swap it out wouldn't be too hard.