Austin Schuh | bb1338c | 2024-06-15 19:31:16 -0700 | [diff] [blame] | 1 | dnl SPARC mpn_umul_ppmm -- support for longlong.h for non-gcc. |
| 2 | |
| 3 | dnl Copyright 1995, 1996, 2000 Free Software Foundation, Inc. |
| 4 | |
| 5 | dnl This file is part of the GNU MP Library. |
| 6 | dnl |
| 7 | dnl The GNU MP Library is free software; you can redistribute it and/or modify |
| 8 | dnl it under the terms of either: |
| 9 | dnl |
| 10 | dnl * the GNU Lesser General Public License as published by the Free |
| 11 | dnl Software Foundation; either version 3 of the License, or (at your |
| 12 | dnl option) any later version. |
| 13 | dnl |
| 14 | dnl or |
| 15 | dnl |
| 16 | dnl * the GNU General Public License as published by the Free Software |
| 17 | dnl Foundation; either version 2 of the License, or (at your option) any |
| 18 | dnl later version. |
| 19 | dnl |
| 20 | dnl or both in parallel, as here. |
| 21 | dnl |
| 22 | dnl The GNU MP Library is distributed in the hope that it will be useful, but |
| 23 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 24 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 25 | dnl for more details. |
| 26 | dnl |
| 27 | dnl You should have received copies of the GNU General Public License and the |
| 28 | dnl GNU Lesser General Public License along with the GNU MP Library. If not, |
| 29 | dnl see https://www.gnu.org/licenses/. |
| 30 | |
| 31 | |
| 32 | include(`../config.m4') |
| 33 | |
| 34 | ASM_START() |
| 35 | PROLOGUE(mpn_umul_ppmm) |
| 36 | wr %g0,%o1,%y |
| 37 | sra %o2,31,%g2 C Don't move this insn |
| 38 | and %o1,%g2,%g2 C Don't move this insn |
| 39 | andcc %g0,0,%g1 C Don't move this insn |
| 40 | mulscc %g1,%o2,%g1 |
| 41 | mulscc %g1,%o2,%g1 |
| 42 | mulscc %g1,%o2,%g1 |
| 43 | mulscc %g1,%o2,%g1 |
| 44 | mulscc %g1,%o2,%g1 |
| 45 | mulscc %g1,%o2,%g1 |
| 46 | mulscc %g1,%o2,%g1 |
| 47 | mulscc %g1,%o2,%g1 |
| 48 | mulscc %g1,%o2,%g1 |
| 49 | mulscc %g1,%o2,%g1 |
| 50 | mulscc %g1,%o2,%g1 |
| 51 | mulscc %g1,%o2,%g1 |
| 52 | mulscc %g1,%o2,%g1 |
| 53 | mulscc %g1,%o2,%g1 |
| 54 | mulscc %g1,%o2,%g1 |
| 55 | mulscc %g1,%o2,%g1 |
| 56 | mulscc %g1,%o2,%g1 |
| 57 | mulscc %g1,%o2,%g1 |
| 58 | mulscc %g1,%o2,%g1 |
| 59 | mulscc %g1,%o2,%g1 |
| 60 | mulscc %g1,%o2,%g1 |
| 61 | mulscc %g1,%o2,%g1 |
| 62 | mulscc %g1,%o2,%g1 |
| 63 | mulscc %g1,%o2,%g1 |
| 64 | mulscc %g1,%o2,%g1 |
| 65 | mulscc %g1,%o2,%g1 |
| 66 | mulscc %g1,%o2,%g1 |
| 67 | mulscc %g1,%o2,%g1 |
| 68 | mulscc %g1,%o2,%g1 |
| 69 | mulscc %g1,%o2,%g1 |
| 70 | mulscc %g1,%o2,%g1 |
| 71 | mulscc %g1,%o2,%g1 |
| 72 | mulscc %g1,0,%g1 |
| 73 | rd %y,%g3 |
| 74 | st %g3,[%o0] |
| 75 | retl |
| 76 | add %g1,%g2,%o0 |
| 77 | EPILOGUE(mpn_umul_ppmm) |