x86: fix "REP RET" with -madd-bnd-prefix
authorJan Beulich <jbeulich@novell.com>
Wed, 11 Jul 2018 08:23:48 +0000 (10:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Jul 2018 08:23:48 +0000 (10:23 +0200)
commit76d3a78a498e814fa1fea713091849cba7896f7a
tree6ba0d4405525d1c09495a663e89b8f858351d702
parentc7df3df443db7b1840735c86a38e00243a2902f7
x86: fix "REP RET" with -madd-bnd-prefix

Just like any other branches, RET should gain a BND prefix also when
already prefixed in source by REP.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/mpx-add-bnd-prefix.d
gas/testsuite/gas/i386/mpx-add-bnd-prefix.e [new file with mode: 0644]
gas/testsuite/gas/i386/mpx-add-bnd-prefix.s
gas/testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d
gas/testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.e [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.s