Re: About global var reg optimization

2017-04-03 Thread Jeff Law
On 04/03/2017 09:42 AM, Aurelien Buhrig wrote: Hello ! I would like to use a fixed global register (here, as an applicative stack pointer) and would like gcc (6.3 / private backend) to actually optimize the following code using postinc/predec addressing mode on this global fixed reg itself (a4 h

About global var reg optimization

2017-04-03 Thread Aurelien Buhrig
Hello ! I would like to use a fixed global register (here, as an applicative stack pointer) and would like gcc (6.3 / private backend) to actually optimize the following code using postinc/predec addressing mode on this global fixed reg itself (a4 here) : register int *ptr asm ("a4"); void pushi