Home | History | Annotate | Line # | Download | only in arm
mullu.S revision 1.1.1.1.6.2
      1  1.1.1.1.6.2  christos /*	$NetBSD: mullu.S,v 1.1.1.1.6.2 2019/06/10 22:08:36 christos Exp $	*/
      2  1.1.1.1.6.2  christos 
      3  1.1.1.1.6.2  christos #------------------------------------------------------------------------------
      4  1.1.1.1.6.2  christos #
      5  1.1.1.1.6.2  christos # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
      6  1.1.1.1.6.2  christos #
      7  1.1.1.1.6.2  christos # This program and the accompanying materials
      8  1.1.1.1.6.2  christos # are licensed and made available under the terms and conditions of the BSD License
      9  1.1.1.1.6.2  christos # which accompanies this distribution.  The full text of the license may be found at
     10  1.1.1.1.6.2  christos # http://opensource.org/licenses/bsd-license.php
     11  1.1.1.1.6.2  christos #
     12  1.1.1.1.6.2  christos # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     13  1.1.1.1.6.2  christos # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     14  1.1.1.1.6.2  christos #
     15  1.1.1.1.6.2  christos #------------------------------------------------------------------------------
     16  1.1.1.1.6.2  christos 
     17  1.1.1.1.6.2  christos #include "edk2asm.h"
     18  1.1.1.1.6.2  christos 
     19  1.1.1.1.6.2  christos .text
     20  1.1.1.1.6.2  christos GCC_ASM_EXPORT(__aeabi_lmul)
     21  1.1.1.1.6.2  christos #
     22  1.1.1.1.6.2  christos #INT64
     23  1.1.1.1.6.2  christos #EFIAPI
     24  1.1.1.1.6.2  christos #__aeabi_lmul (
     25  1.1.1.1.6.2  christos #  IN INT64   Multiplicand
     26  1.1.1.1.6.2  christos #  IN INT64   Multiplier
     27  1.1.1.1.6.2  christos #  );
     28  1.1.1.1.6.2  christos #
     29  1.1.1.1.6.2  christos ASM_PFX(__aeabi_lmul):
     30  1.1.1.1.6.2  christos   stmdb   sp!, {lr}
     31  1.1.1.1.6.2  christos   mov     lr, r0
     32  1.1.1.1.6.2  christos   umull   r0, ip, r2, lr
     33  1.1.1.1.6.2  christos   mla     r1, r2, r1, ip
     34  1.1.1.1.6.2  christos   mla     r1, r3, lr, r1
     35  1.1.1.1.6.2  christos   ldmia   sp!, {pc}
     36