Yet another fdiv/fsub special case.

This commit is contained in:
Christian Kamm
2009-05-09 20:13:05 +02:00
parent 883f13dbce
commit 06108db87e
2 changed files with 2 additions and 2 deletions

View File

@@ -1869,7 +1869,7 @@ namespace AsmParserx8632
// special case fdiv, fsub: see dmd 840, ldc 256
if ((strncmp(mnemonic, "fsub", 4) == 0 ||
strncmp(mnemonic, "fdiv", 4) == 0) &&
operands[0].reg != Reg_ST)
operands[0].reg != Reg_ST && op != Op_FMath)
{
// replace:
// f{sub,div}r{p,} <-> f{sub,div}{p,}

View File

@@ -1995,7 +1995,7 @@ namespace AsmParserx8664
// special case fdiv, fsub: see dmd 840, ldc 256
if ((strncmp(mnemonic, "fsub", 4) == 0 ||
strncmp(mnemonic, "fdiv", 4) == 0) &&
operands[0].reg != Reg_ST)
operands[0].reg != Reg_ST && op != Op_FMath)
{
// replace:
// f{sub,div}r{p,} <-> f{sub,div}{p,}