summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2017-09-29 16:26:31 +0100
committerJames Hogan <jhogan@kernel.org>2017-11-08 21:50:52 +0000
commitd3a0b968186a7e197b7551e4d6080676372152ce (patch)
tree5b80d9ec87799dde7054bd6daa00ee3c9611ee4c /lib
parentb2ec33d438cca839fbb5764bcf5e29cffb3b9721 (diff)
MIPS: Use SLL by 0 for 32-bit truncation in `__read_64bit_c0_split'
Optimize `__read_64bit_c0_split' and reduce the instruction count by 1, observing that a DSLL/DSRA pair by 32, is equivalent to SLL by 0, which architecturally truncates the value requested to 32 bits on 64-bit MIPS hardware regardless of whether the input operand is or is not a properly sign-extended 32-bit value. Signed-off-by: Maciej W. Rozycki <macro@imgtec.com> Reviewed-by: James Hogan <jhogan@kernel.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/17399/ Signed-off-by: James Hogan <jhogan@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions