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: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
committed by
Vasily Gorbik
parent
c4655a2098
commit
4f38c7aefe
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user