Re: [PATCH] i386: Do not allow pointer conversion for CMPccXADD intrin under -O0

2024-11-01 Thread Uros Bizjak
On Fri, Nov 1, 2024 at 9:23 AM Haochen Jiang wrote: > > Hi all, > > The pointer conversion to wider type under macro would not consider > whether the higher bit is cleaned or not. It will lead to unexpected > cmp result. > > After this change, it will throw an incompatible pointer type error just

[PATCH] i386: Do not allow pointer conversion for CMPccXADD intrin under -O0

2024-11-01 Thread Haochen Jiang
Hi all, The pointer conversion to wider type under macro would not consider whether the higher bit is cleaned or not. It will lead to unexpected cmp result. After this change, it will throw an incompatible pointer type error just like -O2 does currently. Bootstraped and tested on x86_64-pc-linux