Commit MetaInfo

Revision724d2da5ebca23d7e7cc57d4ade5967c691c3817 (tree)
Time2018-08-19 16:33:09
AuthorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

h8300: Add missing output register.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

Change Summary

Incremental Difference

--- a/arch/h8300/include/asm/bitops.h
+++ b/arch/h8300/include/asm/bitops.h
@@ -29,11 +29,11 @@ static inline unsigned long ffz(unsigned long word)
2929
3030 result = -1;
3131 __asm__("1:\n\t"
32- "shlr.l %2\n\t"
32+ "shlr.l %1\n\t"
3333 "adds #1,%0\n\t"
3434 "bcs 1b"
35- : "=r"(result)
36- : "0"(result), "r"(word));
35+ : "=r"(result),"=r"(word)
36+ : "0"(result), "1"(word));
3737 return result;
3838 }
3939
@@ -162,11 +162,11 @@ static inline unsigned long __ffs(unsigned long word)
162162
163163 result = -1;
164164 __asm__("1:\n\t"
165- "shlr.l %2\n\t"
165+ "shlr.l %1\n\t"
166166 "adds #1,%0\n\t"
167167 "bcc 1b"
168- : "=r" (result)
169- : "0"(result), "r"(word));
168+ : "=r" (result),"=r"(word)
169+ : "0"(result), "1"(word));
170170 return result;
171171 }
172172
Show on old repository browser