Re: [PATCH] x86: Use x constraint on KL patterns

2022-03-25 Thread Hongtao Liu via Gcc-patches
On Sat, Mar 26, 2022 at 10:05 AM Hongyu Wang via Gcc-patches wrote: > > > > Is it possible to create a test case that gas would throw an error for > > > invalid operands? > > > > You can use -ffix-xmmN to disable XMM0-15. > > I mean can we create an intrinsic test for this PR that produces xmm16-3

Re: [PATCH] x86: Use x constraint on KL patterns

2022-03-25 Thread Hongtao Liu via Gcc-patches
On Sat, Mar 26, 2022 at 4:50 AM H.J. Lu via Gcc-patches wrote: > > Since KL instructions have no AVX512 version, replace the "v" register > constraint with the "x" register constraint. > > PR target/105058 > * config/i386/sse.md (loadiwkey): Replace "v" with "x". > (aesu8):

Re: [PATCH] x86: Use x constraint on KL patterns

2022-03-25 Thread H.J. Lu via Gcc-patches
On Fri, Mar 25, 2022 at 7:04 PM Hongyu Wang wrote: > > > > Is it possible to create a test case that gas would throw an error for > > > invalid operands? > > > > You can use -ffix-xmmN to disable XMM0-15. > > I mean can we create an intrinsic test for this PR that produces xmm16-31? > And the -ffi

Re: [PATCH] x86: Use x constraint on KL patterns

2022-03-25 Thread Hongyu Wang via Gcc-patches
> > Is it possible to create a test case that gas would throw an error for > > invalid operands? > > You can use -ffix-xmmN to disable XMM0-15. I mean can we create an intrinsic test for this PR that produces xmm16-31? And the -ffix-xmmN is an option for assembler or compiler? I didn't find it in

Re: [PATCH] x86: Use x constraint on KL patterns

2022-03-25 Thread H.J. Lu via Gcc-patches
On Fri, Mar 25, 2022 at 6:08 PM Hongyu Wang wrote: > > Is it possible to create a test case that gas would throw an error for > invalid operands? You can use -ffix-xmmN to disable XMM0-15. > H.J. Lu via Gcc-patches 于2022年3月26日周六 04:50写道: > > > > Since KL instructions have no AVX512 version, rep

Re: [PATCH] x86: Use x constraint on KL patterns

2022-03-25 Thread Hongyu Wang via Gcc-patches
Is it possible to create a test case that gas would throw an error for invalid operands? H.J. Lu via Gcc-patches 于2022年3月26日周六 04:50写道: > > Since KL instructions have no AVX512 version, replace the "v" register > constraint with the "x" register constraint. > > PR target/105058 >

[PATCH] x86: Use x constraint on KL patterns

2022-03-25 Thread H.J. Lu via Gcc-patches
Since KL instructions have no AVX512 version, replace the "v" register constraint with the "x" register constraint. PR target/105058 * config/i386/sse.md (loadiwkey): Replace "v" with "x". (aesu8): Likewise. --- gcc/config/i386/sse.md | 6 +++--- 1 file changed, 3 insertio