Re: [PATCH] x86: mark "k" and "Yk" constraints as non-internal

2019-06-27 Thread H.J. Lu
On Thu, Jun 27, 2019 at 5:26 AM Uros Bizjak wrote: > > On Thu, Jun 27, 2019 at 2:23 PM Jan Beulich wrote: > > > > >>> On 27.06.19 at 14:00, wrote: > > > On Thu, Jun 27, 2019 at 1:46 PM Jan Beulich wrote: > > >> > > >> >>> On 27.06.19 at 13:09, wrote: > > >> > On Thu, Jun 27, 2019 at 12:11 PM J

Re: [PATCH] x86: mark "k" and "Yk" constraints as non-internal

2019-06-27 Thread Segher Boessenkool
On Thu, Jun 27, 2019 at 05:46:00AM -0600, Jan Beulich wrote: > While maybe not explicitly applicable here, the intrinsics aren't > (afaict) providing full flexibility. In particular (just as example) > I haven't found a way to use embedded broadcast with the > intrinsics, but I can easily do so wit

Re: [PATCH] x86: mark "k" and "Yk" constraints as non-internal

2019-06-27 Thread Uros Bizjak
On Thu, Jun 27, 2019 at 2:23 PM Jan Beulich wrote: > > >>> On 27.06.19 at 14:00, wrote: > > On Thu, Jun 27, 2019 at 1:46 PM Jan Beulich wrote: > >> > >> >>> On 27.06.19 at 13:09, wrote: > >> > On Thu, Jun 27, 2019 at 12:11 PM Jan Beulich wrote: > >> >> > >> >> Without these constraints asm() c

Re: [PATCH] x86: mark "k" and "Yk" constraints as non-internal

2019-06-27 Thread Jan Beulich
>>> On 27.06.19 at 14:00, wrote: > On Thu, Jun 27, 2019 at 1:46 PM Jan Beulich wrote: >> >> >>> On 27.06.19 at 13:09, wrote: >> > On Thu, Jun 27, 2019 at 12:11 PM Jan Beulich wrote: >> >> >> >> Without these constraints asm() can't make use of mask registers. >> > >> > asm should be deprecated.

Re: [PATCH] x86: mark "k" and "Yk" constraints as non-internal

2019-06-27 Thread Uros Bizjak
On Thu, Jun 27, 2019 at 1:46 PM Jan Beulich wrote: > > >>> On 27.06.19 at 13:09, wrote: > > On Thu, Jun 27, 2019 at 12:11 PM Jan Beulich wrote: > >> > >> Without these constraints asm() can't make use of mask registers. > > > > asm should be deprecated. We have intrinsics for this purpose. > > W

Re: [PATCH] x86: mark "k" and "Yk" constraints as non-internal

2019-06-27 Thread Jan Beulich
>>> On 27.06.19 at 13:09, wrote: > On Thu, Jun 27, 2019 at 12:11 PM Jan Beulich wrote: >> >> Without these constraints asm() can't make use of mask registers. > > asm should be deprecated. We have intrinsics for this purpose. While maybe not explicitly applicable here, the intrinsics aren't (af

Re: [PATCH] x86: mark "k" and "Yk" constraints as non-internal

2019-06-27 Thread Uros Bizjak
On Thu, Jun 27, 2019 at 12:11 PM Jan Beulich wrote: > > Without these constraints asm() can't make use of mask registers. asm should be deprecated. We have intrinsics for this purpose. Uros. > gcc/ > 2019-06-27 Jan Beulich > > * config/i386/constraints.md: Remove @internal from "k" a

Re: [PATCH] x86: mark "k" and "Yk" constraints as non-internal

2019-06-27 Thread Jan Beulich
>>> On 27.06.19 at 12:11, wrote: > Without these constraints asm() can't make use of mask registers. Similarly it is entirely unclear to me how to use e.g. v4fmaddps or vp2intersectd in asm(): For the former the respective "Yh" constraint was dropped (oddly enough leaving its comment line in plac

[PATCH] x86: mark "k" and "Yk" constraints as non-internal

2019-06-27 Thread Jan Beulich
Without these constraints asm() can't make use of mask registers. gcc/ 2019-06-27 Jan Beulich * config/i386/constraints.md: Remove @internal from "k" and "Yk". --- a/gcc/config/i386/constraints.md +++ b/gcc/config/i386/constraints.md @@ -79,10 +79,10 @@ "Second from top of 8