Skip to content

Commit

Permalink
fix bugzilla 23131 With -vasm all the X87 instructions are printed wr…
Browse files Browse the repository at this point in the history
…ong (#17010)
  • Loading branch information
WalterBright authored Oct 22, 2024
1 parent c1e1524 commit a0f15b5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions compiler/src/dmd/backend/x86/disasm86.d
Original file line number Diff line number Diff line change
Expand Up @@ -1472,11 +1472,11 @@ Ldone:
}

puts(p0);
put('t');
puts(" ");
puts(p1);
if (*p2)
{
put('t');
puts(" ");
puts(p2);
if (*p3)
{
Expand Down Expand Up @@ -1757,14 +1757,16 @@ L2:
}

puts(p0);
put('\t');
if (waitflag)
put(' ');
if (0 && waitflag)
puts(p1 + 2);
else
puts(p1);
if (*p2)
{
put('\t');
for (int len1 = cast(int)strlen(p1); len1 < 9; ++len1)
put(' ');
put(' ');
if (*mfp)
{
puts(mfp);
Expand Down Expand Up @@ -3669,7 +3671,7 @@ unittest
];

int line64 = __LINE__;
string[26] cases64 = // 64 bit code gen
string[27] cases64 = // 64 bit code gen
[
"31 C0 xor EAX,EAX",
"48 89 4C 24 08 mov 8[RSP],RCX",
Expand Down Expand Up @@ -3697,6 +3699,7 @@ unittest
"66 0F 73 FF 99 pslldq XMM7,099h",
"F3 0F 1E FB endbr32",
"F3 0F 1E FA endbr64",
"DD 1C 24 fnstp qword ptr [RSP]",
];

char[BUFMAX] buf;
Expand Down

0 comments on commit a0f15b5

Please sign in to comment.