[PATCH] D11513: Fix conflict for referencing "flags" variable in X86 assembly syntax - test case
Marina Yatsina
marina.yatsina at intel.com
Sun Jul 26 10:10:42 PDT 2015
myatsina created this revision.
myatsina added reviewers: rnk, MatzeB.
myatsina added a subscriber: llvm-commits.
myatsina set the repository for this revision to rL LLVM.
Test case for:
http://reviews.llvm.org/D11512
Repository:
rL LLVM
http://reviews.llvm.org/D11513
Files:
test/CodeGen/ms-inline-asm.c
Index: test/CodeGen/ms-inline-asm.c
===================================================================
--- test/CodeGen/ms-inline-asm.c
+++ test/CodeGen/ms-inline-asm.c
@@ -508,6 +508,14 @@
// CHECK: "*m,*m,*m,*m,*m,*m,~{dirflag},~{fpsr},~{flags}"(i16* {{.*}}, i16* {{.*}}, i16* {{.*}}, i16* {{.*}}, i16* {{.*}}, i16* {{.*}})
}
+void t42() {
+// CHECK-LABEL: define void @t42
+ int flags;
+ __asm mov flags, eax
+// CHECK: mov dword ptr $0, eax
+// CHECK: "=*m,~{dirflag},~{fpsr},~{flags}"(i32* %flags)
+}
+
void call_clobber() {
__asm call t41
// CHECK-LABEL: define void @call_clobber
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11513.30658.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150726/97e478b7/attachment.bin>
More information about the llvm-commits
mailing list