It looks like GCC arm has not yet supported adc sbb for arm while clang
does.
https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html
clang:
https://godbolt.org/z/8q9djE7fr
gcc with aarch64 target:
https://godbolt.org/z/Wxcf6r7sP
gcc x86_64 correctly supports it while gcc arm does not:
在 2024-08-20 16:13, Frederick Virchanza Gotham via Gcc 写道:
I want to write a new calling convention into the GNU g++ compiler,
specifically for the x86_64 instruction set.
The x64 calling convention is much more complex than x86. Each of the first four parameter is not
only assigned an integer
I want to write a new calling convention into the GNU g++ compiler,
specifically for the x86_64 instruction set.
On MS-Windows, the x64 calling convention puts the first argument in RCX,
and puts the return value in RAX. I wish to write a new calling convention
which uses RAX for both the first ar