[ms] [llvm-ml] Restore omitted changes requested by reviewer

This commit is contained in:
Eric Astor 2020-07-13 10:47:30 -04:00
parent 1847f4dd75
commit 3aabfa2808
2 changed files with 4 additions and 1 deletions

View File

@ -1657,7 +1657,7 @@ bool X86AsmParser::ParseIntelExpression(IntelExprStateMachine &SM, SMLoc &End) {
if (NextTok.is(AsmToken::Identifier) &&
NextTok.getIdentifier().equals_lower("ptr")) {
SM.onCast(Identifier);
// eat type and ptr
// Eat type and PTR.
consumeToken();
End = consumeToken();
break;

View File

@ -156,6 +156,7 @@ QUUX STRUCT
x BYTE ?
y BYTE ?
ENDS
after_struct BYTE ?
ENDS
z DWORD ?
QUUX ENDS
@ -166,6 +167,7 @@ mov eax, [ebx].QUUX.v
mov eax, [ebx].QUUX.w
mov eax, [ebx].QUUX.x
mov eax, [ebx].QUUX.y
mov eax, [ebx].QUUX.after_struct
mov eax, [ebx].QUUX.z
; CHECK: t9:
@ -174,6 +176,7 @@ mov eax, [ebx].QUUX.z
; CHECK-NEXT: mov eax, dword ptr [ebx + 4]
; CHECK-NEXT: mov eax, dword ptr [ebx + 4]
; CHECK-NEXT: mov eax, dword ptr [ebx + 5]
; CHECK-NEXT: mov eax, dword ptr [ebx + 4]
; CHECK-NEXT: mov eax, dword ptr [ebx + 8]
t10: