]> granicus.if.org Git - clang/commitdiff
[ms-inline asm] Test case for r163729.
authorChad Rosier <mcrosier@apple.com>
Wed, 12 Sep 2012 18:25:06 +0000 (18:25 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 12 Sep 2012 18:25:06 +0000 (18:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163730 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ms-inline-asm.c

index 67e0eb46b601563bd6481a5f8d116735efb5c2ff..a3758c67cfc8b37b7346008e86fe8f3de74ac1e5 100644 (file)
@@ -139,3 +139,9 @@ void t16(unsigned long long V) {
 // CHECK: t16
 // CHECK:   call void asm sideeffect inteldialect "mov eax, DWORD PTR [$0]", "r,~{eax},~{dirflag},~{fpsr},~{flags}"(i64 %0) nounwind
 }
+
+void t17(void) {
+  __asm mov eax, dword ptr [eax]
+// CHECK: t17
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr [eax]", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind
+}