diff options
author | Devang Patel <dpatel@apple.com> | 2012-01-17 18:00:18 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2012-01-17 18:00:18 +0000 |
commit | d37ad247cc04c2a436e537767ac1aec709901594 (patch) | |
tree | 1c91c359794ad5a8768895d18b61e85c1545690a /test/MC | |
parent | f61f22a5d1fffc6b83679f5b666f4afb787f6ae5 (diff) | |
download | external_llvm-d37ad247cc04c2a436e537767ac1aec709901594.zip external_llvm-d37ad247cc04c2a436e537767ac1aec709901594.tar.gz external_llvm-d37ad247cc04c2a436e537767ac1aec709901594.tar.bz2 |
Intel syntax: Robustify memory operand parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/X86/intel-syntax.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/X86/intel-syntax.s b/test/MC/X86/intel-syntax.s index dbd78a3..ec236e0 100644 --- a/test/MC/X86/intel-syntax.s +++ b/test/MC/X86/intel-syntax.s @@ -8,3 +8,11 @@ mov BYTE PTR [RSP - 17], 97 // CHECK: movl -4(%rsp), %eax mov EAX, DWORD PTR [RSP - 4] +// CHECK: movq (%rsp), %rax + mov RAX, QWORD PTR [RSP] +// CHECK: movl $-4, -4(%rsp) + mov DWORD PTR [RSP - 4], -4 +// CHECK: movq 0, %rcx + mov RCX, QWORD PTR [0] +// CHECK: movl -24(%rsp,%rax,4), %eax + mov EAX, DWORD PTR [RSP + 4*RAX - 24] |