[X86] Parse data32 call in .code16 as CALLpcrel32
authorFangrui Song <i@maskray.me>
Thu, 24 Sep 2020 01:36:50 +0000 (18:36 -0700)
committerFangrui Song <i@maskray.me>
Thu, 24 Sep 2020 01:37:41 +0000 (18:37 -0700)
commit3d38a975d72c8711a123d1862e517bcbdab7d700
tree758aa32e9d78278045bd7dcb4479b59bd7b55de5
parentbc7f6c6dd8252370e6b485b8193093004644a16d
[X86] Parse data32 call in .code16 as CALLpcrel32

Used by kexec-tools (PR46942)
In GNU as, tc-i386.c:output_jump uses 4-byte immediate if a data32 prefix is present.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D88137
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/test/MC/X86/data-prefix-fail.s
llvm/test/MC/X86/x86-16.s