Skip to content

Commit

Permalink
s390/lib,xor: get rid of register asm
Browse files Browse the repository at this point in the history
Looking at the generate code this was just a micro-optimization.
However given that as many register asm constructs as possible
will be removed from s390 code, remove this one as well.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
  • Loading branch information
Heiko Carstens authored and Vasily Gorbik committed Jun 28, 2021
1 parent fcc91d5 commit 7e86f96
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/s390/lib/xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ static void xor_xc_4(unsigned long bytes, unsigned long *p1, unsigned long *p2,
static void xor_xc_5(unsigned long bytes, unsigned long *p1, unsigned long *p2,
unsigned long *p3, unsigned long *p4, unsigned long *p5)
{
/* Get around a gcc oddity */
register unsigned long *reg7 asm ("7") = p5;

asm volatile(
" larl 1,2f\n"
" aghi %0,-1\n"
Expand Down Expand Up @@ -122,7 +119,7 @@ static void xor_xc_5(unsigned long bytes, unsigned long *p1, unsigned long *p2,
" xc 0(1,%1),0(%5)\n"
"3:\n"
: "+d" (bytes), "+a" (p1), "+a" (p2), "+a" (p3), "+a" (p4),
"+a" (reg7)
"+a" (p5)
: : "0", "1", "cc", "memory");
}

Expand Down

0 comments on commit 7e86f96

Please sign in to comment.