Module Name: src Committed By: isaki Date: Sat Aug 22 10:12:29 UTC 2020
Modified Files: src/sys/arch/x68k/stand/xxboot: ashldi3.S Log Message: Minor improvement. add/addx is faster and the size remains the same. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x68k/stand/xxboot/ashldi3.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x68k/stand/xxboot/ashldi3.S diff -u src/sys/arch/x68k/stand/xxboot/ashldi3.S:1.2 src/sys/arch/x68k/stand/xxboot/ashldi3.S:1.3 --- src/sys/arch/x68k/stand/xxboot/ashldi3.S:1.2 Sat Aug 22 10:05:04 2020 +++ src/sys/arch/x68k/stand/xxboot/ashldi3.S Sat Aug 22 10:12:29 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: ashldi3.S,v 1.2 2020/08/22 10:05:04 isaki Exp $ */ +/* $NetBSD: ashldi3.S,v 1.3 2020/08/22 10:12:29 isaki Exp $ */ /* * Copyright (C) 2020 Tetsuya Isaki. All rights reserved. @@ -37,8 +37,8 @@ ASENTRY_NOPROFILE(__ashldi3) | %a0 = shift count jbra start loop: - lsll #1,%d1 | X:%d1 <<= 1 - roxll #1,%d0 | %d0:X <<= 1 + addl %d1,%d1 | X:%d1 <<= 1 + addxl %d0,%d0 | %d0:X <<= 1 start: subql #1,%a0 | sub %a0 doesn't affect ccr, tstl %a0 | but this extra TST op is