comparison gen/asm-x86-64.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 fdfc4060bcec
comparison
equal deleted inserted replaced
1324:b3674ad4026d 1325:5a9dc345c70a
1993 1993
1994 default: 1994 default:
1995 // special case fdiv, fsub: see dmd 840, ldc 256 1995 // special case fdiv, fsub: see dmd 840, ldc 256
1996 if ((strncmp(mnemonic, "fsub", 4) == 0 || 1996 if ((strncmp(mnemonic, "fsub", 4) == 0 ||
1997 strncmp(mnemonic, "fdiv", 4) == 0) && 1997 strncmp(mnemonic, "fdiv", 4) == 0) &&
1998 operands[0].reg != Reg_ST) 1998 operands[0].reg != Reg_ST && op != Op_FMath)
1999 { 1999 {
2000 // replace: 2000 // replace:
2001 // f{sub,div}r{p,} <-> f{sub,div}{p,} 2001 // f{sub,div}r{p,} <-> f{sub,div}{p,}
2002 if (mnemonic[4] == 'r') 2002 if (mnemonic[4] == 'r')
2003 { 2003 {