mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
Teach X86 asm parser to understand 'ZMMWORD PTR' in Intel syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d59bb44ee
commit
9d0b786f72
@ -1246,6 +1246,7 @@ static unsigned getIntelMemOperandSize(StringRef OpStr) {
|
||||
.Cases("XWORD", "xword", 80)
|
||||
.Cases("XMMWORD", "xmmword", 128)
|
||||
.Cases("YMMWORD", "ymmword", 256)
|
||||
.Cases("ZMMWORD", "zmmword", 512)
|
||||
.Default(0);
|
||||
return Size;
|
||||
}
|
||||
|
5
test/MC/X86/intel-syntax-avx512.s
Normal file
5
test/MC/X86/intel-syntax-avx512.s
Normal file
@ -0,0 +1,5 @@
|
||||
// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel -mcpu=knl --show-encoding %s | FileCheck %s
|
||||
|
||||
// CHECK: vaddps (%rax), %zmm1, %zmm1
|
||||
// CHECK: encoding: [0x62,0xf1,0x74,0x48,0x58,0x08]
|
||||
vaddps zmm1, zmm1, zmmword ptr [rax]
|
Loading…
Reference in New Issue
Block a user