[PATCH] D34740: [X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when the two collides
coby via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 24 00:08:28 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL308867: [X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when theā¦ (authored by coby).
Changed prior to commit:
https://reviews.llvm.org/D34740?vs=104352&id=107851#toc
Repository:
rL LLVM
https://reviews.llvm.org/D34740
Files:
cfe/trunk/test/CodeGen/ms-inline-asm-var-name.c
Index: cfe/trunk/test/CodeGen/ms-inline-asm-var-name.c
===================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm-var-name.c
+++ cfe/trunk/test/CodeGen/ms-inline-asm-var-name.c
@@ -0,0 +1,12 @@
+// REQUIRES: x86-registered-target
+// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s
+
+void t() {
+ int eax;
+ int Ecx;
+ __asm mov eax, ebx
+ // CHECK: mov $0, ebx
+ __asm add ecx, Ecx
+ // CHECK: add ecx, $1
+}
+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34740.107851.patch
Type: text/x-patch
Size: 512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170724/3b78d0bb/attachment.bin>
More information about the cfe-commits
mailing list