Make the no-operand versions of floating point inline asm instructions always

pop the floating point stack - like dmd does.
This commit is contained in:
Christian Kamm
2009-05-06 18:54:20 +02:00
parent 8a8818104b
commit c57f6212a6
2 changed files with 12 additions and 0 deletions

View File

@@ -1885,6 +1885,12 @@ namespace AsmParserx8632
insnTemplate.write(mnemonic, mlen-1) << tc_1 << type_char;
}
break;
case Op_FMath0:
// the no-operand versions of floating point ops always pop
insnTemplate << mnemonic << "p";
break;
default:
// special case fdiv, fsub: see dmd 840, ldc 256
if (strncmp(mnemonic, "fsub", 4) == 0 ||

View File

@@ -2007,6 +2007,12 @@ namespace AsmParserx8664
insnTemplate.write(mnemonic, mlen-1) << tc_1 << type_char;
}
break;
case Op_FMath0:
// the no-operand versions of floating point ops always pop
insnTemplate << mnemonic << "p";
break;
default:
// special case fdiv, fsub: see dmd 840, ldc 256
if (strncmp(mnemonic, "fsub", 4) == 0 ||