New calling convention gotham_call

2024-08-20 Thread 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. 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

Re: New calling convention gotham_call

2024-08-20 Thread LIU Hao via Gcc
在 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

Fwd: GCC arm target does not generate the correct code for adc patterns

2024-08-20 Thread coshvji cujmlqef via Gcc
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: