[PATCH] ms-inline-asm: Add a test to ensure that call doesn't clobber eax.

Ehsan Akhgari ehsan.akhgari at gmail.com
Thu Jul 31 06:52:36 PDT 2014


Closed by commit rL214401 (authored by @ehsan).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4577

Files:
  cfe/trunk/test/CodeGen/ms-inline-asm.c

Index: cfe/trunk/test/CodeGen/ms-inline-asm.c
===================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c
@@ -504,3 +504,9 @@
 // CHECK: mov ss, word ptr $5
 // CHECK: "*m,*m,*m,*m,*m,*m,~{dirflag},~{fpsr},~{flags}"(i16* {{.*}}, i16* {{.*}}, i16* {{.*}}, i16* {{.*}}, i16* {{.*}}, i16* {{.*}})
 }
+
+void call_clobber() {
+  __asm call t41
+  // CHECK-LABEL: define void @call_clobber
+  // CHECK: call void asm sideeffect inteldialect "call $0", "r,~{dirflag},~{fpsr},~{flags}"(void (i16)* @t41)
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4577.12062.patch
Type: text/x-patch
Size: 594 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140731/c77b2d7f/attachment.bin>


More information about the cfe-commits mailing list