comparison gen/asm-x86-32.h @ 1325:5a9dc345c70a

Yet another fdiv/fsub special case.
author Christian Kamm <kamm incasoftware de>
date Sat, 09 May 2009 20:13:05 +0200
parents 1ad5a58b5c9d
children 171ef89dd3ee
comparison
equal deleted inserted replaced
1324:b3674ad4026d 1325:5a9dc345c70a
1867 1867
1868 default: 1868 default:
1869 // special case fdiv, fsub: see dmd 840, ldc 256 1869 // special case fdiv, fsub: see dmd 840, ldc 256
1870 if ((strncmp(mnemonic, "fsub", 4) == 0 || 1870 if ((strncmp(mnemonic, "fsub", 4) == 0 ||
1871 strncmp(mnemonic, "fdiv", 4) == 0) && 1871 strncmp(mnemonic, "fdiv", 4) == 0) &&
1872 operands[0].reg != Reg_ST) 1872 operands[0].reg != Reg_ST && op != Op_FMath)
1873 { 1873 {
1874 // replace: 1874 // replace:
1875 // f{sub,div}r{p,} <-> f{sub,div}{p,} 1875 // f{sub,div}r{p,} <-> f{sub,div}{p,}
1876 if (mnemonic[4] == 'r') 1876 if (mnemonic[4] == 'r')
1877 { 1877 {