On 12/05/14 07:57, Ilya Enkovich wrote:
Hi,
This patch fixes PR target/64003 by avoiding functions calls during computations of
"length" attribute for short jump instructions. It is achieved by having
separate templates for prefixed and not prefixed instructions. Please see discussion in
bugzilla for reasoning.
Bootstrapped and tested on x86_64-unknown-linux-gnu. Valgrind run for
reproducer shows problem is fixed. OK for trunk?
Thanks,
Ilya
--
2014-12-05 Ilya Enkovich <ilya.enkov...@intel.com>
* config/i386/i386.md (*jcc_1_bnd): New.
(*jcc_2_bnd): New.
(jump_bnd): New.
(*jcc_1): Remove bnd prefix.
(*jcc_2): Likewise.
(jump): Likewise.
Just wanted to say thanks for taking care of this. The obscure and
undocumented rules about what can appear in these length computations
is, umm, bad and I don't think anyone could reasonably have expected you
to know about them.
jeff