Re: POWER __builtin_add_overflow/__builtin_mul_overflow with u64

2023-02-15 Thread Segher Boessenkool
Hi! On Tue, Feb 14, 2023 at 09:23:55AM +0100, Jakub Jelinek wrote: > CCing Segher and David on this. > rs6000 indeed doesn't implement {,u}{add,sub,mul}v4_optab for > any mode and thus leaves it to the generic code. Yes. Can we do better than the generic code, for those? > On Tue, Feb 14, 2023

Re: POWER __builtin_add_overflow/__builtin_mul_overflow with u64

2023-02-14 Thread Eric Botcazou via Gcc
> rs6000 indeed doesn't implement {,u}{add,sub,mul}v4_optab for > any mode and thus leaves it to the generic code. https://gcc.gnu.org/pipermail/gcc-patches/2016-October/460209.html -- Eric Botcazou

Re: POWER __builtin_add_overflow/__builtin_mul_overflow with u64

2023-02-14 Thread Jakub Jelinek via Gcc
Hi! CCing Segher and David on this. rs6000 indeed doesn't implement {,u}{add,sub,mul}v4_optab for any mode and thus leaves it to the generic code. On Tue, Feb 14, 2023 at 04:48:42AM +0100, Simon Richter wrote: > I'm looking at the generated code for these builtins on POWER: > > add 4,3,4