summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/X86/x86-32-ms-inline-asm.s
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-03-27 21:49:56 +0000
committerChad Rosier <mcrosier@apple.com>2013-03-27 21:49:56 +0000
commit1530ba5e7385965b2928a154bab6f3b5ed3bc8aa (patch)
tree0e9760ed194119525d689e7d471b076a4e416e2e /llvm/test/MC/X86/x86-32-ms-inline-asm.s
parent7e1eae004c74a4b31f7d6bd4ff8394bd27fa09be (diff)
downloadbcm5719-llvm-1530ba5e7385965b2928a154bab6f3b5ed3bc8aa.tar.gz
bcm5719-llvm-1530ba5e7385965b2928a154bab6f3b5ed3bc8aa.zip
[ms-inline asm] Add support of imm displacement before bracketed memory
expression. Specifically, this syntax: ImmDisp [ BaseReg + Scale*IndexReg + Disp ] We don't currently support: ImmDisp [ Symbol ] rdar://13518671 llvm-svn: 178186
Diffstat (limited to 'llvm/test/MC/X86/x86-32-ms-inline-asm.s')
-rw-r--r--llvm/test/MC/X86/x86-32-ms-inline-asm.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/MC/X86/x86-32-ms-inline-asm.s b/llvm/test/MC/X86/x86-32-ms-inline-asm.s
index 5524c706cc5..d912915c585 100644
--- a/llvm/test/MC/X86/x86-32-ms-inline-asm.s
+++ b/llvm/test/MC/X86/x86-32-ms-inline-asm.s
@@ -57,6 +57,26 @@ _t21: ## @t21
// CHECK: movl 4(%esi,%eax,2), %eax
// CHECK: # encoding: [0x8b,0x44,0x46,0x04]
+ mov eax, 4[esi + 2*eax + 4]
+// CHECK: movl 8(%esi,%eax,2), %eax
+// CHECK: # encoding: [0x8b,0x44,0x46,0x08]
+ mov eax, 4[esi][2*eax + 4]
+// CHECK: movl 8(%esi,%eax,2), %eax
+// CHECK: # encoding: [0x8b,0x44,0x46,0x08]
+ mov eax, 4[esi + 2*eax][4]
+// CHECK: movl 8(%esi,%eax,2), %eax
+// CHECK: # encoding: [0x8b,0x44,0x46,0x08]
+ mov eax, 4[esi][2*eax][4]
+// CHECK: movl 8(%esi,%eax,2), %eax
+// CHECK: # encoding: [0x8b,0x44,0x46,0x08]
+ mov eax, 4[esi][2*eax][4][8]
+// CHECK: movl 16(%esi,%eax,2), %eax
+// CHECK: # encoding: [0x8b,0x44,0x46,0x10]
+
+ prefetchnta 64[eax]
+// CHECK: prefetchnta 64(%eax)
+// CHECK: # encoding: [0x0f,0x18,0x40,0x40]
+
pusha
// CHECK: pushal
// CHECK: # encoding: [0x60]
OpenPOWER on IntegriCloud