Teach x86 asm parser to handle 'opaque ptr' in Intel syntax.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199477 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2014-01-17 07:44:10 +00:00
parent 9d0b786f72
commit 50a2b1672d
2 changed files with 3 additions and 2 deletions

View File

@ -1247,6 +1247,7 @@ static unsigned getIntelMemOperandSize(StringRef OpStr) {
.Cases("XMMWORD", "xmmword", 128)
.Cases("YMMWORD", "ymmword", 256)
.Cases("ZMMWORD", "zmmword", 512)
.Cases("OPAQUE", "opaque", -1U) // needs to be non-zero, but doesn't matter
.Default(0);
return Size;
}

View File

@ -588,5 +588,5 @@ fdivr ST(1)
// CHECK: fxsaveq (%rax)
// CHECK: fxrstorq (%rax)
fxsave64 [rax]
fxrstor64 [rax]
fxsave64 opaque ptr [rax]
fxrstor64 opaque ptr [rax]