Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Phil Edworthy | eeb84df | 2011-06-02 22:15:27 +0000 | [diff] [blame] | 2 | /* Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, |
| 3 | 2004, 2005, 2006 |
| 4 | Free Software Foundation, Inc. |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | */ |
Phil Edworthy | eeb84df | 2011-06-02 22:15:27 +0000 | [diff] [blame] | 6 | |
| 7 | !! libgcc routines for the Renesas / SuperH SH CPUs. |
| 8 | !! Contributed by Steve Chamberlain. |
| 9 | !! sac@cygnus.com |
| 10 | |
| 11 | !! ashiftrt_r4_x, ___ashrsi3, ___ashlsi3, ___lshrsi3 routines |
| 12 | !! recoded in assembly by Toshiyasu Morita |
| 13 | !! tm@netcom.com |
| 14 | |
| 15 | /* SH2 optimizations for ___ashrsi3, ___ashlsi3, ___lshrsi3 and |
| 16 | ELF local label prefixes by J"orn Rennecke |
| 17 | amylaar@cygnus.com */ |
| 18 | |
| 19 | .global __ashiftrt_r4_0 |
| 20 | .global __ashiftrt_r4_1 |
| 21 | .global __ashiftrt_r4_2 |
| 22 | .global __ashiftrt_r4_3 |
| 23 | .global __ashiftrt_r4_4 |
| 24 | .global __ashiftrt_r4_5 |
| 25 | .global __ashiftrt_r4_6 |
| 26 | .global __ashiftrt_r4_7 |
| 27 | .global __ashiftrt_r4_8 |
| 28 | .global __ashiftrt_r4_9 |
| 29 | .global __ashiftrt_r4_10 |
| 30 | .global __ashiftrt_r4_11 |
| 31 | .global __ashiftrt_r4_12 |
| 32 | .global __ashiftrt_r4_13 |
| 33 | .global __ashiftrt_r4_14 |
| 34 | .global __ashiftrt_r4_15 |
| 35 | .global __ashiftrt_r4_16 |
| 36 | .global __ashiftrt_r4_17 |
| 37 | .global __ashiftrt_r4_18 |
| 38 | .global __ashiftrt_r4_19 |
| 39 | .global __ashiftrt_r4_20 |
| 40 | .global __ashiftrt_r4_21 |
| 41 | .global __ashiftrt_r4_22 |
| 42 | .global __ashiftrt_r4_23 |
| 43 | .global __ashiftrt_r4_24 |
| 44 | .global __ashiftrt_r4_25 |
| 45 | .global __ashiftrt_r4_26 |
| 46 | .global __ashiftrt_r4_27 |
| 47 | .global __ashiftrt_r4_28 |
| 48 | .global __ashiftrt_r4_29 |
| 49 | .global __ashiftrt_r4_30 |
| 50 | .global __ashiftrt_r4_31 |
| 51 | .global __ashiftrt_r4_32 |
| 52 | |
| 53 | .align 1 |
| 54 | __ashiftrt_r4_32: |
| 55 | __ashiftrt_r4_31: |
| 56 | rotcl r4 |
| 57 | rts |
| 58 | subc r4,r4 |
| 59 | __ashiftrt_r4_30: |
| 60 | shar r4 |
| 61 | __ashiftrt_r4_29: |
| 62 | shar r4 |
| 63 | __ashiftrt_r4_28: |
| 64 | shar r4 |
| 65 | __ashiftrt_r4_27: |
| 66 | shar r4 |
| 67 | __ashiftrt_r4_26: |
| 68 | shar r4 |
| 69 | __ashiftrt_r4_25: |
| 70 | shar r4 |
| 71 | __ashiftrt_r4_24: |
| 72 | shlr16 r4 |
| 73 | shlr8 r4 |
| 74 | rts |
| 75 | exts.b r4,r4 |
| 76 | __ashiftrt_r4_23: |
| 77 | shar r4 |
| 78 | __ashiftrt_r4_22: |
| 79 | shar r4 |
| 80 | __ashiftrt_r4_21: |
| 81 | shar r4 |
| 82 | __ashiftrt_r4_20: |
| 83 | shar r4 |
| 84 | __ashiftrt_r4_19: |
| 85 | shar r4 |
| 86 | __ashiftrt_r4_18: |
| 87 | shar r4 |
| 88 | __ashiftrt_r4_17: |
| 89 | shar r4 |
| 90 | __ashiftrt_r4_16: |
| 91 | shlr16 r4 |
| 92 | rts |
| 93 | exts.w r4,r4 |
| 94 | __ashiftrt_r4_15: |
| 95 | shar r4 |
| 96 | __ashiftrt_r4_14: |
| 97 | shar r4 |
| 98 | __ashiftrt_r4_13: |
| 99 | shar r4 |
| 100 | __ashiftrt_r4_12: |
| 101 | shar r4 |
| 102 | __ashiftrt_r4_11: |
| 103 | shar r4 |
| 104 | __ashiftrt_r4_10: |
| 105 | shar r4 |
| 106 | __ashiftrt_r4_9: |
| 107 | shar r4 |
| 108 | __ashiftrt_r4_8: |
| 109 | shar r4 |
| 110 | __ashiftrt_r4_7: |
| 111 | shar r4 |
| 112 | __ashiftrt_r4_6: |
| 113 | shar r4 |
| 114 | __ashiftrt_r4_5: |
| 115 | shar r4 |
| 116 | __ashiftrt_r4_4: |
| 117 | shar r4 |
| 118 | __ashiftrt_r4_3: |
| 119 | shar r4 |
| 120 | __ashiftrt_r4_2: |
| 121 | shar r4 |
| 122 | __ashiftrt_r4_1: |
| 123 | rts |
| 124 | shar r4 |
| 125 | __ashiftrt_r4_0: |
| 126 | rts |
| 127 | nop |