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

Differential Revision: http://reviews.llvm.org/D12151


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Zuckerman 2015-08-24 10:26:54 +00:00
parent 67a54d2081
commit 59dfeede45
2 changed files with 4 additions and 1 deletions

View File

@ -1049,8 +1049,8 @@ static unsigned getIntelMemOperandSize(StringRef OpStr) {
.Cases("WORD", "word", 16)
.Cases("DWORD", "dword", 32)
.Cases("QWORD", "qword", 64)
.Cases("MMWORD","mmword", 64)
.Cases("XWORD", "xword", 80)
//
.Cases("TBYTE", "tbyte", 80)
.Cases("XMMWORD", "xmmword", 128)
.Cases("YMMWORD", "ymmword", 256)

View File

@ -705,6 +705,9 @@ repnz cmpsb
sal eax, 123
// CHECK: shll $123, %eax
psignw mm0, MMWORD PTR t2
// CHECK: psignw t2, %mm0
comisd xmm0, QWORD PTR [eax]
comiss xmm0, DWORD PTR [eax]
vcomisd xmm0, QWORD PTR [eax]