Skip to content

Commit 4e20996

Browse files
committed
s390/kvm: Convert to use flag output macros
Use flag output macros in inline asm to allow for better code generation if the compiler has support for the flag output constraint. Reviewed-by: Juergen Christ <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 0b7265a commit 4e20996

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/s390/kvm/kvm-s390.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <asm/sclp.h>
4444
#include <asm/cpacf.h>
4545
#include <asm/timex.h>
46+
#include <asm/asm.h>
4647
#include <asm/fpu.h>
4748
#include <asm/ap.h>
4849
#include <asm/uv.h>
@@ -340,12 +341,11 @@ static inline int plo_test_bit(unsigned char nr)
340341
" lgr 0,%[function]\n"
341342
/* Parameter registers are ignored for "test bit" */
342343
" plo 0,0,0,0(0)\n"
343-
" ipm %0\n"
344-
" srl %0,28\n"
345-
: "=d" (cc)
344+
CC_IPM(cc)
345+
: CC_OUT(cc, cc)
346346
: [function] "d" (function)
347-
: "cc", "0");
348-
return cc == 0;
347+
: CC_CLOBBER_LIST("0"));
348+
return CC_TRANSFORM(cc) == 0;
349349
}
350350

351351
static __always_inline void __sortl_query(u8 (*query)[32])

0 commit comments

Comments
 (0)