Author: mcrosier
Date: Thu Oct 4 18:59:54 2012
New Revision: 165276
URL: http://llvm.org/viewvc/llvm-project?rev=165276&view=rev
Log:
Test case for r165275.
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=165276&r1=165275&r2=165276&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Thu Oct 4 18:59:54 2012
@@ -167,3 +167,12 @@
// CHECK: t19
// 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
}
+
+void t20(void) {
+ __asm {
+ mov eax, fs:[0x10]
+ mov eax, [eax]
+ }
+// CHECK: t20
+// call void asm sideeffect inteldialect "mov eax, fs:[0x10]\0A\09mov eax,
[eax]", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind
+}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits