]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/asm: Helper macros for flag output operand handling
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Nov 2024 15:11:32 +0000 (16:11 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 13 Nov 2024 13:31:31 +0000 (14:31 +0100)
commite7583c5f8d0e0aa34178b6f34a89f81090393c64
tree4af412cccd0484a6ba0ed7ce4aa3a15a75c4281a
parent2f4b3b83b8c6e798a2e581521f00933d0f9ec777
s390/asm: Helper macros for flag output operand handling

Since gcc supports flag out operands for inline assemblies there is always
the question when this feature should be used and if it is worth all the
ifdefs that come with that.

In order to avoid that provide similar macros like x86 which can be used
for all inline assemblies which extract the condition code. Depending on
compiler features the generated code will either always contain an ipm+srl
instruction pair, which extracts the condition code, or alternatively let
the compiler handle this completely.

Suggested-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/Kconfig
arch/s390/include/asm/asm.h