Skip to content

Commit be6aee1

Browse files
committed
parisc: Fix wrong comment for shr macro
The comment that the source and target register can not be the same is wrong. Instead on PA2.0 usage of extru can clobber upper 32-bits. This patch fixes the comment. Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 44eeb9b commit be6aee1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/parisc/include/asm/assembly.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
depd,z \r, 63-(\sa), 64-(\sa), \t
144144
.endm
145145

146-
/* Shift Right - note the r and t can NOT be the same! */
146+
/* Shift Right for 32-bit. Clobbers upper 32-bit on PA2.0. */
147147
.macro shr r, sa, t
148148
extru \r, 31-(\sa), 32-(\sa), \t
149149
.endm

0 commit comments

Comments
 (0)