[X86] Add support for tbyte memory operand size for Intel-syntax x86 assembly

Differential Revision: http://reviews.llvm.org/D11257
Patch by: marina.yatsina@intel.com

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Kuperstein 2015-07-19 11:03:08 +00:00
parent c365e7e2b5
commit 00552e3875
2 changed files with 3 additions and 0 deletions

View File

@ -1028,6 +1028,7 @@ static unsigned getIntelMemOperandSize(StringRef OpStr) {
.Cases("DWORD", "dword", 32) .Cases("DWORD", "dword", 32)
.Cases("QWORD", "qword", 64) .Cases("QWORD", "qword", 64)
.Cases("XWORD", "xword", 80) .Cases("XWORD", "xword", 80)
.Cases("TBYTE", "tbyte", 80)
.Cases("XMMWORD", "xmmword", 128) .Cases("XMMWORD", "xmmword", 128)
.Cases("YMMWORD", "ymmword", 256) .Cases("YMMWORD", "ymmword", 256)
.Cases("ZMMWORD", "zmmword", 512) .Cases("ZMMWORD", "zmmword", 512)

View File

@ -635,10 +635,12 @@ add byte ptr [rax], 1
// CHECK: addw $1, (%rax) // CHECK: addw $1, (%rax)
// CHECK: addb $1, (%rax) // CHECK: addb $1, (%rax)
fstp tbyte ptr [rax]
fstp xword ptr [rax] fstp xword ptr [rax]
fstp qword ptr [rax] fstp qword ptr [rax]
fstp dword ptr [rax] fstp dword ptr [rax]
// CHECK: fstpt (%rax) // CHECK: fstpt (%rax)
// CHECK: fstpt (%rax)
// CHECK: fstpl (%rax) // CHECK: fstpl (%rax)
// CHECK: fstps (%rax) // CHECK: fstps (%rax)