Re: [GCC 12] [PATCH] x86: Support 2/4/8 byte constant vector stores

2022-07-31 Thread Uros Bizjak via Gcc-patches
On Wed, Jul 27, 2022 at 4:24 PM H.J. Lu wrote: > > On Fri, Jul 1, 2022 at 8:31 AM Uros Bizjak wrote: > > > > On Thu, Jun 30, 2022 at 4:50 PM H.J. Lu wrote: > > > > > > 1. Add a predicate for constant vectors which can be converted to integer > > > constants suitable for constant integer stores.

[GCC 12] [PATCH] x86: Support 2/4/8 byte constant vector stores

2022-07-27 Thread H.J. Lu via Gcc-patches
On Fri, Jul 1, 2022 at 8:31 AM Uros Bizjak wrote: > > On Thu, Jun 30, 2022 at 4:50 PM H.J. Lu wrote: > > > > 1. Add a predicate for constant vectors which can be converted to integer > > constants suitable for constant integer stores. For a 8-byte constant > > vector, the converted 64-bit intege

Re: [PATCH] x86: Support 2/4/8 byte constant vector stores

2022-07-01 Thread Uros Bizjak via Gcc-patches
On Thu, Jun 30, 2022 at 4:50 PM H.J. Lu wrote: > > 1. Add a predicate for constant vectors which can be converted to integer > constants suitable for constant integer stores. For a 8-byte constant > vector, the converted 64-bit integer must be valid for store with 64-bit > immediate, which is a 6

[PATCH] x86: Support 2/4/8 byte constant vector stores

2022-06-30 Thread H.J. Lu via Gcc-patches
1. Add a predicate for constant vectors which can be converted to integer constants suitable for constant integer stores. For a 8-byte constant vector, the converted 64-bit integer must be valid for store with 64-bit immediate, which is a 64-bit integer sign-extended from a 32-bit integer. 2. Add