Re: [PATCH V13 - RESEND 02/10] arm64/perf: Add BRBE registers and fields

From: Peter Zijlstra
Date: Tue Aug 15 2023 - 16:36:18 EST


On Tue, Aug 15, 2023 at 02:05:36PM +0100, Mark Rutland wrote:

> From a quick dig, it's supposed to be like that: the GNU assembler uses a
> different operator precedence to C, and clang's assembler does the same for
> compatibility. What a great.

GNU assembler doesn't even have a consistent true value for boolean
expressions. The comparisons use -1/~0 as true value while the logical
ops use 1.

It's as if they purposefully want to mess you up :-(

https://sourceware.org/binutils/docs-2.38/as.html#Infix-Ops