https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122692

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|120763                      |
   Last reconfirmed|                            |2025-11-17
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |pan2.li at intel dot com
     Ever confirmed|0                           |1
                 CC|                            |pan2.li at intel dot com

--- Comment #4 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Seems to be triggered by:

commit 5d2115b850df63b0ecdf56efb720ad848e7afe21 (HEAD)
Author: Pan Li <[email protected]>
Date:   Mon Jul 1 16:36:35 2024 +0800

    RISC-V: Implement the .SAT_TRUNC for scalar

    This patch would like to implement the simple .SAT_TRUNC pattern
    in the riscv backend. Aka:

    Form 1:
      #define DEF_SAT_U_TRUC_FMT_1(NT, WT)     \
      NT __attribute__((noinline))             \
      sat_u_truc_##WT##_to_##NT##_fmt_1 (WT x) \
      {                                        \
        bool overflow = x > (WT)(NT)(-1);      \
        return ((NT)x) | (NT)-overflow;        \
      }

    DEF_SAT_U_TRUC_FMT_1(uint32_t, uint64_t)
 [ ... ]

But I haven't dug deeper than that.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120763
[Bug 120763] [meta-bug] Tracker for bugs to visit during weekly RISC-V meeting

Reply via email to