r217174 - MS inline asm: Add a test for xgetbv clobbers

Reid Kleckner reid at kleckner.net
Thu Sep 4 09:58:47 PDT 2014


Author: rnk
Date: Thu Sep  4 11:58:47 2014
New Revision: 217174

URL: http://llvm.org/viewvc/llvm-project?rev=217174&view=rev
Log:
MS inline asm: Add a test for xgetbv clobbers

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=217174&r1=217173&r2=217174&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Thu Sep  4 11:58:47 2014
@@ -510,3 +510,9 @@ void call_clobber() {
   // CHECK-LABEL: define void @call_clobber
   // CHECK: call void asm sideeffect inteldialect "call dword ptr $0", "*m,~{dirflag},~{fpsr},~{flags}"(void (i16)* @t41)
 }
+
+void xgetbv() {
+  __asm xgetbv
+}
+// CHECK-LABEL: define void @xgetbv()
+// CHECK: call void asm sideeffect inteldialect "xgetbv", "~{eax},~{edx},~{dirflag},~{fpsr},~{flags}"()





More information about the cfe-commits mailing list