Re: [PATCH] x86: Require TARGET_HIMODE_MATH for HImode atomic bit expanders

2021-11-15 Thread Uros Bizjak via Gcc-patches
On Mon, Nov 15, 2021 at 9:01 AM Jakub Jelinek wrote: > > On Fri, Nov 12, 2021 at 04:34:27PM +0100, Jakub Jelinek via Gcc-patches wrote: > > Why? When one uses 16-bit atomics, no matter what he does there will be > > some HImode math (at least the atomic instruction). And the rest can be > >

Re: [PATCH] x86: Require TARGET_HIMODE_MATH for HImode atomic bit expanders

2021-11-15 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 12, 2021 at 04:34:27PM +0100, Jakub Jelinek via Gcc-patches wrote: > Why? When one uses 16-bit atomics, no matter what he does there will be > some HImode math (at least the atomic instruction). And the rest can be > dealt with. > > I have following patch queued for testing for

Re: [PATCH] x86: Require TARGET_HIMODE_MATH for HImode atomic bit expanders

2021-11-12 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 12, 2021 at 07:55:26AM -0800, H.J. Lu wrote: > > I have following patch queued for testing for this... > > > > 2021-11-12 Jakub Jelinek > > > > PR target/103205 > > * config/i386/sync.md (atomic_bit_test_and_set, > > atomic_bit_test_and_complement, > >

Re: [PATCH] x86: Require TARGET_HIMODE_MATH for HImode atomic bit expanders

2021-11-12 Thread H.J. Lu via Gcc-patches
On Fri, Nov 12, 2021 at 7:34 AM Jakub Jelinek wrote: > > On Fri, Nov 12, 2021 at 07:29:03AM -0800, H.J. Lu wrote: > > Check optab before transforming equivalent, but slighly different cases > > to their canonical forms in optimize_atomic_bit_test_and and require > > TARGET_HIMODE_MATH in HImode

Re: [PATCH] x86: Require TARGET_HIMODE_MATH for HImode atomic bit expanders

2021-11-12 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 12, 2021 at 07:29:03AM -0800, H.J. Lu wrote: > Check optab before transforming equivalent, but slighly different cases > to their canonical forms in optimize_atomic_bit_test_and and require > TARGET_HIMODE_MATH in HImode atomic bit expanders. > > gcc/ > > PR target/103205 >

[PATCH] x86: Require TARGET_HIMODE_MATH for HImode atomic bit expanders

2021-11-12 Thread H.J. Lu via Gcc-patches
Check optab before transforming equivalent, but slighly different cases to their canonical forms in optimize_atomic_bit_test_and and require TARGET_HIMODE_MATH in HImode atomic bit expanders. gcc/ PR target/103205 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Check optab