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

Peter Zijlstra peterz at infradead.org
Tue Aug 15 13:35:27 PDT 2023


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



More information about the linux-arm-kernel mailing list