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

llvm-svn: 199477
This commit is contained in:
Craig Topper 2014-01-17 07:44:10 +00:00
parent 9ac290ad5b
commit 2d4b3c9770
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]