[PATCH] D35893: [x86][inline-asm][ms-compat] legalize the use of "jc/jz short <op>"

coby via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 30 04:14:32 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL309510: [x86][inline-asm][ms-compat] legalize the use of "jc/jz short <op>" (authored by coby).

Changed prior to commit:
  https://reviews.llvm.org/D35893?vs=108286&id=108827#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35893

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
@@ -704,10 +704,12 @@
 void label6(){
   __asm {
       jmp short label
+      jc  short label
+      jz  short label
     label:
   }
   // CHECK-LABEL: define void @label6
-  // CHECK: call void asm sideeffect inteldialect "jmp {{.*}}__MSASMLABEL_.${:uid}__label\0A\09{{.*}}__MSASMLABEL_.${:uid}__label:", "~{dirflag},~{fpsr},~{flags}"()
+  // CHECK: jmp {{.*}}__MSASMLABEL_.${:uid}__label\0A\09jc {{.*}}__MSASMLABEL_.${:uid}__label\0A\09jz {{.*}}__MSASMLABEL_.${:uid}__label\0A\09{{.*}}__MSASMLABEL_.${:uid}__label:"
 }
 
 // Don't include mxcsr in the clobber list.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35893.108827.patch
Type: text/x-patch
Size: 770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170730/244fa57e/attachment.bin>


More information about the llvm-commits mailing list