Re: [PATCH 1/2] ARC: Use intrinsics for __builtin_add_overflow*()

2024-04-19 Thread Shahab Vahedi
Hi Clauudiu, On 9/7/23 12:15, Claudiu Zissulescu Ianculescu wrote: > Ok. > > Thank you for your contribution, > Claudiu Could you commit this patch? > > On Wed, Sep 6, 2023 at 3:50 PM Shahab Vahedi > wrote: >> >> This patch covers signed and unsigned additions. The generated code >> would

Re: [PATCH 1/2] ARC: Use intrinsics for __builtin_add_overflow*()

2023-09-07 Thread Claudiu Zissulescu Ianculescu via Gcc-patches
Ok. Thank you for your contribution, Claudiu On Wed, Sep 6, 2023 at 3:50 PM Shahab Vahedi wrote: > > This patch covers signed and unsigned additions. The generated code > would be something along these lines: > > signed: > add.f r0, r1, r2 > b.v @label > > unsigned: > add.f r0,

[PATCH 1/2] ARC: Use intrinsics for __builtin_add_overflow*()

2023-09-06 Thread Shahab Vahedi via Gcc-patches
This patch covers signed and unsigned additions. The generated code would be something along these lines: signed: add.f r0, r1, r2 b.v @label unsigned: add.f r0, r1, r2 b.c @label gcc/ChangeLog: * config/arc/arc-modes.def: Add CC_V mode. *