Skip to content

Commit

Permalink
Bug 1493916 - Fix ppc64 inline assembler for clang r=jcj
Browse files Browse the repository at this point in the history
Seems clang's inline assembler doesn't want registers to be prefixed with "r",
while gcc accepts both - r0 and 0 for GPR0.

tested with clang 6.0 and gcc 8.1

--HG--
extra : amend_source : 87e09bb59c78bdb25b9573b9f29511e10b9db6fa
extra : histedit_source : 9b3fad70ac2851bf7de14d42c34db4a5fba41710
  • Loading branch information
sharkcz committed Jul 22, 2019
1 parent e2e8b06 commit 671d89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/freebl/mpi/mpcpucache.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ static inline void
dcbzl(char *array)
{
register char *a asm("r2") = array;
__asm__ __volatile__("dcbzl %0,r0"
__asm__ __volatile__("dcbzl %0,0"
: "=r"(a)
: "0"(a));
}
Expand Down

0 comments on commit 671d89b

Please sign in to comment.