x86-64: correct / adjust prefix emission
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Dec 2019 08:39:17 +0000 (09:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Dec 2019 08:39:17 +0000 (09:39 +0100)
commit6cb0a70ef31ff585f046cb20a30088c0433d84f0
tree7db13f1044a85a4be4154085ec17d3ee31893c79
parent376cd056100dff2d6fc842aa013d0bbffdef363d
x86-64: correct / adjust prefix emission

First and foremost REX must come last. Next JumpInterSegment branches
can't possibly have a REX prefix, as they're consistently CpuNo64. And
finally make BND prefix handling in output_branch() consistent with that
of other prefixes in the same function, and make its placement among
prefixes consistent with output_jump() (which, oddly enough, still isn't
the supposedly canonical order specified by the *_PREFIX definitions).
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/x86-64-branch-2.d
gas/testsuite/gas/i386/x86-64-branch-2.s
gas/testsuite/gas/i386/x86-64-branch-3.d
gas/testsuite/gas/i386/x86-64-branch-3.s
gas/testsuite/gas/i386/x86-64-mpx-branch-1.d
gas/testsuite/gas/i386/x86-64-mpx-branch-1.s
gas/testsuite/gas/i386/x86-64-mpx-branch-2.d
gas/testsuite/gas/i386/x86-64-mpx-branch-2.s