fleroviux / lunatic

ARM to x86-64 dynamic recompiler engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

X64Backend: sign flag after BT is undefined

fleroviux opened this issue · comments

In AND, EOR and ORR we use bt to restore the shifter carry flag, but this leaves the sign flag undefined.

https://www.felixcloutier.com/x86/bt

The CF flag contains the value of the selected bit. The ZF flag is unaffected. The OF, SF, AF, and PF flags are undefined.