[Bug middle-end/108016] RISC-V:Bad codegen in scalar code comparing to LLVM

juzhe.zhong at rivai dot ai gcc-bugzilla@gcc.gnu.org
Tue Jan 16 07:19:52 GMT 2024


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); }


More information about the Gcc-bugs mailing list