> On Apr 8, 2024, at 4:01 PM, Paul Iannetta via Gcc <gcc@gcc.gnu.org> wrote: > > On Mon, Apr 08, 2024 at 11:26:40AM -0700, Andrew Pinski wrote: >> On Mon, Apr 8, 2024 at 11:20 AM Paul Iannetta via Gcc <gcc@gcc.gnu.org> >> wrote: >>> ... >> Also do you sign or zero extend a 32bit argument for LP64 targets? >> Right now it is not obvious nor documented in your examples. >> > > Another case would be targets allowing an immediate argument for their > syscall instruction. Sign extend is probably always an error, zero > extend may give the expected results. It depends on the ABI. For example, on MIPS, pointers are treated as signed when extending from 32 to 64 bits. paul
- Re: Re: [RFC] Linux system cal... Matheus Afonso Martins Moreira via Gcc
- Re: Re: [RFC] Linux system... Jonathan Wakely via Gcc
- Re: [RFC] Linux system call builtin... Florian Weimer via Gcc
- Re: [RFC] Linux system call bu... Alexander Monakov
- Re: [RFC] Linux system cal... Florian Weimer via Gcc
- Re: [RFC] Linux system... Alexander Monakov
- Re: Re: [RFC] Linux system cal... Matheus Afonso Martins Moreira via Gcc
- Re: [RFC] Linux system call builtin... Paul Iannetta via Gcc
- Re: [RFC] Linux system call bu... Andrew Pinski via Gcc
- Re: [RFC] Linux system cal... Paul Iannetta via Gcc
- Re: [RFC] Linux system... Paul Koning via Gcc
- [RFC] Linux system call bu... Matheus Afonso Martins Moreira via Gcc
- Re: [RFC] Linux system... Paul Koning via Gcc
- [RFC] Linux system... Matheus Afonso Martins Moreira via Gcc
- [RFC] Linux system call builti... Matheus Afonso Martins Moreira via Gcc
- Re: [RFC] Linux system call builtin... Paul Floyd via Gcc
- [RFC] Linux system call builti... Matheus Afonso Martins Moreira via Gcc
- Re: [RFC] Linux system call builtin... Szabolcs Nagy via Gcc
- [RFC] Linux system call builti... Matheus Afonso Martins Moreira via Gcc
- Re: [RFC] Linux system cal... Szabolcs Nagy via Gcc
- [RFC] Linux system cal... Matheus Afonso Martins Moreira via Gcc