[x86][ms-inline-asm] use of "jmp short" in asm is not supported
authorMichael Zuckerman <Michael.zuckerman@intel.com>
Fri, 14 Oct 2016 08:09:40 +0000 (08:09 +0000)
committerMichael Zuckerman <Michael.zuckerman@intel.com>
Fri, 14 Oct 2016 08:09:40 +0000 (08:09 +0000)
commit174d2e784b0688d281c1eece3d6ee17be8868945
treec77d007059df88eaab057228957899ce19edc481
parent73bfe423fe4212c76a44aa3d9397255d5b72673a
[x86][ms-inline-asm] use of "jmp short" in asm is not supported

Committing in the name of Ziv Izhar: After check-all and LGTM .

The following patch is for compatability with Microsoft.
Microsoft ignores the keyword "short" when used after a jmp, for example:
__asm {
      jmp short label
      label:
      }

A test for that patch will be added in another patch, since it's located in clang's codegen tests. Link will be added shortly.
link to test: https://reviews.llvm.org/D24958

Differential Revision: https://reviews.llvm.org/D24957

llvm-svn: 284211
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp