Merge pull request #1827 from WalterBright/fix9863

fix Issue 9863 - Incorrect generation of SAHF instruction on 64 bits