From fce476b6e965594e2bf2ea2f03a3d1021e2e227a Mon Sep 17 00:00:00 2001 From: Michael Zuckerman Date: Fri, 14 Oct 2016 08:13:27 +0000 Subject: [PATCH] [x86][ms-inline-asm] use of "jmp short" in asm is not supported Test linked to: https://reviews.llvm.org/D24957 Committing in the name of Ziv Izhar: After check-all and LGTM . Differential Revision: https://reviews.llvm.org/D24958 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284213 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/ms-inline-asm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c index 0be89f25aa..aa1a474582 100644 --- a/test/CodeGen/ms-inline-asm.c +++ b/test/CodeGen/ms-inline-asm.c @@ -634,6 +634,15 @@ void label5() { // CHECK: call void asm sideeffect inteldialect "jmp {{.*}}__MSASMLABEL_.5__dollar_label$$\0A\09{{.*}}__MSASMLABEL_.5__dollar_label$$:", "~{dirflag},~{fpsr},~{flags}"() } +void label6(){ + __asm { + jmp short label + label: + } + // CHECK-LABEL: define void @label6 + // CHECK: call void asm sideeffect inteldialect "jmp {{.*}}__MSASMLABEL_.6__label\0A\09{{.*}}__MSASMLABEL_.6__label:", "~{dirflag},~{fpsr},~{flags}"() +} + typedef union _LARGE_INTEGER { struct { unsigned int LowPart; -- 2.40.0