Merge pull request #1893 from WalterBright/improve_div

Improve division code generation.