[PATCH 4/6] x86: use D attribute also for SIMD templates

H.J. Lu hjl.tools@gmail.com
Thu Aug 2 12:22:00 GMT 2018


On Wed, Aug 1, 2018 at 11:50 PM, Jan Beulich <JBeulich@suse.com> wrote:
> Various moves come in load and store forms, and just like on the GPR
> and FPU sides there would better be only one pattern. In some cases this
> is not feasible because the opcodes are too different, but quite a few
> cases follow a similar standard scheme. Introduce Opcode_SIMD_FloatD and
> Opcode_SIMD_IntD, generalize handling in operand_size_match() (reverse
> operand handling there simply needs to match "straight" operand one),
> and fix a long standing, but so far only latent bug with when to zap
> found_reverse_match.
>
> Also once again drop IgnoreSize where pointlessly applied to templates
> touched anyway as well as *word when redundant with Reg*.
>
> gas/
> 2018-08-02  Jan Beulich  <jbeulich@suse.com>
>
>         * config/tc-i386.c (operand_size_match): Mirror
>         .reg/.regsimd/.acc handling from forward to reverse case.
>         (build_vex_prefix): Check first and last operand types are equal
>         and also consider .d for swapping operands for VEX2 encoding.
>         (match_template): Clear found_reverse_match on every iteration.
>         Use Opcode_SIMD_FloatD and Opcode_SIMD_IntD.
>         * testsuite/gas/i386/pseudos.s,
>         testsuite/gas/i386/x86-64-pseudos.s: Add kmov* tests.
>         * testsuite/gas/i386/pseudos.d,
>         testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
>
> opcodes/
> 2018-08-02  Jan Beulich  <jbeulich@suse.com>
>
>         * i386-opc.tbl (bndmov, kmovb, kmovd, kmovq, kmovw, movapd,
>         movaps, movd, movdqa, movdqu, movhpd, movhps, movlpd, movlps,
>         movq, movsd, movss, movupd, movups, vmovapd, vmovaps, vmovd,
>         vmovdqa, vmovdqa32, vmovdqa64, vmovdqu, vmovdqu16, vmovdqu32,
>         vmovdqu64, vmovdqu8, vmovq, vmovsd, vmovss, vmovupd, vmovups):
>         Fold load and store templates where possible, adding D. Drop
>         IgnoreSize where it was pointlessly present. Drop redundant
>         *word.
>         * i386-tbl.h: Re-generate.

OK.  Thanks.

-- 
H.J.



More information about the Binutils mailing list