public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108016] New: RISC-V:Bad codegen in scalar code comparing to LLVM
@ 2022-12-08  1:19 juzhe.zhong at rivai dot ai
  2022-12-08  1:22 ` [Bug middle-end/108016] " pinskia at gcc dot gnu.org
  2024-01-16  7:19 ` juzhe.zhong at rivai dot ai
  0 siblings, 2 replies; 3+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2022-12-08  1:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108016
           Summary: RISC-V:Bad codegen in scalar code comparing to LLVM
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juzhe.zhong at rivai dot ai
  Target Milestone: ---

This is the simple code example:
https://godbolt.org/z/jKGavbx7o

Post it here and let me not forget about it. 
If someone can fix it, I will really appreciate.

If not, I will fix it if I have time (Currently busy with working on RVV
support).

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/108016] RISC-V:Bad codegen in scalar code comparing to LLVM
  2022-12-08  1:19 [Bug c++/108016] New: RISC-V:Bad codegen in scalar code comparing to LLVM juzhe.zhong at rivai dot ai
@ 2022-12-08  1:22 ` pinskia at gcc dot gnu.org
  2024-01-16  7:19 ` juzhe.zhong at rivai dot ai
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-08  1:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
99% it is a dup of those other bugs.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/108016] RISC-V:Bad codegen in scalar code comparing to LLVM
  2022-12-08  1:19 [Bug c++/108016] New: RISC-V:Bad codegen in scalar code comparing to LLVM juzhe.zhong at rivai dot ai
  2022-12-08  1:22 ` [Bug middle-end/108016] " pinskia at gcc dot gnu.org
@ 2024-01-16  7:19 ` juzhe.zhong at rivai dot ai
  1 sibling, 0 replies; 3+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2024-01-16  7:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
#include <algorithm>
        std::pair<unsigned, bool> full_add(unsigned a, unsigned b)
        { return std::make_pair(a + b, a + b < a); }

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-16  7:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-08  1:19 [Bug c++/108016] New: RISC-V:Bad codegen in scalar code comparing to LLVM juzhe.zhong at rivai dot ai
2022-12-08  1:22 ` [Bug middle-end/108016] " pinskia at gcc dot gnu.org
2024-01-16  7:19 ` juzhe.zhong at rivai dot ai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).