aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-18 15:49:40 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-18 15:49:40 +0000
commit7fd00b153c991fbe30f9fa76391d2ad9fa1d349d (patch)
tree0ec1d40eec3cb83ae564b85fb232fea12ebf5ad8 /test/CodeGen
parentd77a051237b7bb9c29e537bea18e4bb37ae6b803 (diff)
[ms-inline asm] Move most of the AsmParsing logic in clang back into the MC
layer. Use the new ParseMSInlineAsm() API and add an implementation of the MCAsmParserSemaCallback interface. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/ms-inline-asm.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c
index 387a49cfd2..f16cd81eda 100644
--- a/test/CodeGen/ms-inline-asm.c
+++ b/test/CodeGen/ms-inline-asm.c
@@ -114,3 +114,20 @@ unsigned t12(void) {
// CHECK: t12
// CHECK: call void asm sideeffect inteldialect "mov eax, $2\0A\09mov $0, eax\0A\09mov eax, $3\0A\09mov $1, eax", "=*m,=*m,*m,*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}, i32* %{{.*}}, i32* %{{.*}}, i32* %{{.*}}) nounwind
}
+
+#if 0
+void t13() {
+ unsigned i = 1, j = 2;
+// __asm mov eax, [ebx]
+// __asm mov eax, [4*ecx]
+// __asm mov eax, [4]
+// __asm mov eax, [ebx + 4*ecx]
+// __asm mov eax, [ebx + 4*ecx + 4]
+ __asm mov eax, [i]
+ __asm mov eax, [i + 4*ecx]
+ __asm mov eax, [i + 4*ecx + 4]
+ __asm mov eax, [4*i]
+ __asm mov eax, [ebx + 4*i]
+ __asm mov eax, [ebx + 4*i + 4]
+}
+#endif