]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/asm: Remove code depending on __GCC_ASM_FLAG_OUTPUTS__
authorUros Bizjak <ubizjak@gmail.com>
Sun, 7 Sep 2025 18:33:38 +0000 (20:33 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 8 Sep 2025 13:38:06 +0000 (15:38 +0200)
commitc6c973dbfa5e34b1572bcd1852adcad1b5d08fab
treed7f0dfbf593ee77c79d6d3efe69c5877c446de98
parent13bdfb53aa04eeb8022af87288c5bc0a5d13a834
x86/asm: Remove code depending on __GCC_ASM_FLAG_OUTPUTS__

The minimum supported GCC version is 8.1, which supports flag output operands
and always defines __GCC_ASM_FLAG_OUTPUTS__ macro.

Remove code depending on __GCC_ASM_FLAG_OUTPUTS__ and use the "=@ccCOND" flag
output operand directly.

Use the equivalent "=@ccz" instead of "=@cce" flag output operand for
CMPXCHG8B and CMPXCHG16B instructions. These instructions set a single flag
bit - the Zero flag - and "=@ccz" is used to distinguish the CC user from
comparison instructions, where set ZERO flag indeed means that the values are
equal.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20250905121723.GCaLrU04lP2A50PT-B@fat_crate.local
17 files changed:
arch/x86/boot/bitops.h
arch/x86/boot/boot.h
arch/x86/boot/string.c
arch/x86/include/asm/archrandom.h
arch/x86/include/asm/asm.h
arch/x86/include/asm/bitops.h
arch/x86/include/asm/cmpxchg.h
arch/x86/include/asm/cmpxchg_32.h
arch/x86/include/asm/cmpxchg_64.h
arch/x86/include/asm/percpu.h
arch/x86/include/asm/rmwcc.h
arch/x86/include/asm/sev.h
arch/x86/include/asm/signal.h
arch/x86/include/asm/special_insns.h
arch/x86/include/asm/uaccess.h
tools/arch/x86/include/asm/asm.h
tools/perf/bench/find-bit-bench.c