diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2017-09-29 16:26:31 +0100 |
---|---|---|
committer | James Hogan <jhogan@kernel.org> | 2017-11-08 21:50:52 +0000 |
commit | d3a0b968186a7e197b7551e4d6080676372152ce (patch) | |
tree | 5b80d9ec87799dde7054bd6daa00ee3c9611ee4c /arch/mips/lasat | |
parent | b2ec33d438cca839fbb5764bcf5e29cffb3b9721 (diff) | |
download | blackbird-op-linux-d3a0b968186a7e197b7551e4d6080676372152ce.tar.gz blackbird-op-linux-d3a0b968186a7e197b7551e4d6080676372152ce.zip |
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 'arch/mips/lasat')
0 files changed, 0 insertions, 0 deletions