Commit 4f38c7ae authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik
Browse files

s390/bitops: use register pair instead of register asm



Get rid of register asm statement and use a register pair.
This allows the compiler to allocate registers on its own.

Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent c4655a20
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -299,13 +299,13 @@ static inline unsigned char __flogr(unsigned long word)
		}
		return bit;
	} else {
		register unsigned long bit asm("4") = word;
		register unsigned long out asm("5");
		union register_pair rp;

		rp.even = word;
		asm volatile(
			"       flogr   %[bit],%[bit]\n"
			: [bit] "+d" (bit), [out] "=d" (out) : : "cc");
		return bit;
			"       flogr   %[rp],%[rp]\n"
			: [rp] "+d" (rp.pair) : : "cc");
		return rp.even;
	}
}