mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-15 16:41:49 +01:00
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:
@@ -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 ||
|
||||
|
||||
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user