11.3Sisaki/* $NetBSD: ashldi3.s,v 1.3 2020/08/22 05:09:02 isaki Exp $ */ 21.1Smhitch 31.1Smhitch/*- 41.1Smhitch * Copyright (c) 1996 The NetBSD Foundation, Inc. 51.1Smhitch * All rights reserved. 61.1Smhitch * 71.1Smhitch * This code is derived from software contributed to The NetBSD Foundation 81.1Smhitch * by Ignatios Souvatzis. 91.1Smhitch * 101.1Smhitch * Redistribution and use in source and binary forms, with or without 111.1Smhitch * modification, are permitted provided that the following conditions 121.1Smhitch * are met: 131.1Smhitch * 1. Redistributions of source code must retain the above copyright 141.1Smhitch * notice, this list of conditions and the following disclaimer. 151.1Smhitch * 2. Redistributions in binary form must reproduce the above copyright 161.1Smhitch * notice, this list of conditions and the following disclaimer in the 171.1Smhitch * documentation and/or other materials provided with the distribution. 181.1Smhitch * 191.1Smhitch * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.1Smhitch * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.1Smhitch * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.1Smhitch * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.1Smhitch * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.1Smhitch * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.1Smhitch * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.1Smhitch * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.1Smhitch * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.1Smhitch * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.1Smhitch * POSSIBILITY OF SUCH DAMAGE. 301.1Smhitch */ 311.1Smhitch 321.1Smhitch#include <machine/asm.h> 331.1Smhitch 341.1SmhitchENTRY_NOPROFILE(__ashldi3) 351.1Smhitch movl %d2,%sp@- | 0 reg, 1 %pc, 2..4 parameters 361.1Smhitch movml %sp@(8),%d0-%d2 371.1Smhitch jra L2 381.1SmhitchL1: 391.3Sisaki asll #1,%d1 401.3Sisaki roxll #1,%d0 411.1SmhitchL2: 421.1Smhitch dbra %d2,L1 431.1Smhitch 441.1Smhitch movl %sp@+,%d2 451.1Smhitch rts 46