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

2024-04-19 Thread Shahab Vahedi
Hi Claudiu, 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 subtractions. The generated code >>

Re: [PATCH 2/2] ARC: Use intrinsics for __builtin_sub_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 subtractions. The generated code > would be something along these lines: > > signed: > sub.f r0, r1, r2 > b.v @label > > unsigned: > sub.f

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

2023-09-06 Thread Shahab Vahedi via Gcc-patches
This patch covers signed and unsigned subtractions. The generated code would be something along these lines: signed: sub.f r0, r1, r2 b.v @label unsigned: sub.f r0, r1, r2 b.c @label gcc/ChangeLog: * config/arc/arc.md (subsi3_v): New insn. (subvsi4): New