Re: Missing clobber on alternative use on Linux UM 32-bit

2023-11-04 Thread Nadav Amit
> On Nov 4, 2023, at 11:34 AM, Anton Ivanov > wrote: > > On 04/11/2023 09:25, Nadav Amit wrote: >> >> I was reading (again) the x86 C macro of “alternative()” and I was a bit >> surprised it does clobber the flags (“cc”) as a precaution. >> >> #define alternative(oldinstr, newinstr, ft_flag

Re: Missing clobber on alternative use on Linux UM 32-bit

2023-11-04 Thread Anton Ivanov
On 04/11/2023 09:25, Nadav Amit wrote: I was reading (again) the x86 C macro of “alternative()” and I was a bit surprised it does clobber the flags (“cc”) as a precaution. #define alternative(oldinstr, newinstr, ft_flags) \ asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags

Missing clobber on alternative use on Linux UM 32-bit

2023-11-04 Thread Nadav Amit
I was reading (again) the x86 C macro of “alternative()” and I was a bit surprised it does clobber the flags (“cc”) as a precaution. #define alternative(oldinstr, newinstr, ft_flags) \ asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory") Actually there seems t