[PATCH] D11513: Fix conflict for referencing "flags" variable in X86 assembly syntax - test case

Michael Kuperstein michael.m.kuperstein at intel.com
Thu Jul 30 03:11:29 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL243632: [X86] Recognize "flags" as an identifier, not a register in Intel-syntax… (authored by mkuper).

Changed prior to commit:
  http://reviews.llvm.org/D11513?vs=30658&id=31013#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11513

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
@@ -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.31013.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150730/cbdfda35/attachment.bin>


More information about the llvm-commits mailing list