summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-24 23:10:28 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-24 23:10:28 +0000
commitb3009eec47d2aaa61cc848a66a7bbd69ad9e0f19 (patch)
treedc631549c757573a90d0494d65739b6ccd633255 /test/MC
parent4e33d94304c499083b2a3d4a8904084001f83882 (diff)
downloadllvm-b3009eec47d2aaa61cc848a66a7bbd69ad9e0f19.tar.gz
llvm-b3009eec47d2aaa61cc848a66a7bbd69ad9e0f19.tar.bz2
llvm-b3009eec47d2aaa61cc848a66a7bbd69ad9e0f19.tar.xz
[ms-inline asm] Add back-end test case for r166632. Make sure we emit the
correct .s output as well as get the correct encoding by the integrated assembler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/X86/x86-32-ms-inline-asm.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/X86/x86-32-ms-inline-asm.s b/test/MC/X86/x86-32-ms-inline-asm.s
new file mode 100644
index 0000000000..aedef46385
--- /dev/null
+++ b/test/MC/X86/x86-32-ms-inline-asm.s
@@ -0,0 +1,12 @@
+// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
+
+.intel_syntax
+mov eax, [ebx].0
+mov [ebx].4, ecx
+.att_syntax
+
+; CHECK: movl (%ebx), %eax
+; CHECK: encoding: [0x8b,0x03]
+; CHECK: movl %ecx, 4(%ebx)
+; CHECK: encoding: [0x89,0x4b,0x04]
+