r214401 - 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:43:17 PDT 2014
Author: ehsan
Date: Thu Jul 31 08:43:17 2014
New Revision: 214401
URL: http://llvm.org/viewvc/llvm-project?rev=214401&view=rev
Log:
ms-inline-asm: Add a test to ensure that call doesn't clobber eax.
Note that it's not clear whether this is the right behavior, please see
the review for the discussion.
Reviewers: rnk
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D4577
Modified:
cfe/trunk/test/CodeGen/ms-inline-asm.c
Modified: cfe/trunk/test/CodeGen/ms-inline-asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-inline-asm.c?rev=214401&r1=214400&r2=214401&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Thu Jul 31 08:43:17 2014
@@ -504,3 +504,9 @@ void t41(unsigned short a) {
// 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)
+}
More information about the cfe-commits
mailing list