From: Coby Tayree Date: Sun, 30 Jul 2017 11:13:46 +0000 (+0000) Subject: [x86][inline-asm][ms-compat] legalize the use of "jc/jz short " X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da7788766dded8da515590183f395950c71dc3aa;p=clang [x86][inline-asm][ms-compat] legalize the use of "jc/jz short " MS ignores the keyword "short" when used after a jc/jz instruction, LLVM ought to do the same. llvm: D35892 Differential Revision: https://reviews.llvm.org/D35893 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c index ca4f815406..a0af14d9d8 100644 --- a/test/CodeGen/ms-inline-asm.c +++ b/test/CodeGen/ms-inline-asm.c @@ -704,10 +704,12 @@ void label5() { 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.