Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 1 | /* Copyright 1995, 1996, 1998, 1999, 2000, 2003, 2004, 2005 |
| 2 | Free Software Foundation, Inc. |
| 3 | |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 6 | |
| 7 | #ifdef __ARMEB__ |
| 8 | #define al r1 |
| 9 | #define ah r0 |
| 10 | #else |
| 11 | #define al r0 |
| 12 | #define ah r1 |
| 13 | #endif |
| 14 | |
| 15 | .globl __ashldi3 |
Wolfgang Denk | 8a5ddb1 | 2009-08-06 21:29:59 +0200 | [diff] [blame] | 16 | .globl __aeabi_llsl |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 17 | __ashldi3: |
Wolfgang Denk | 8a5ddb1 | 2009-08-06 21:29:59 +0200 | [diff] [blame] | 18 | __aeabi_llsl: |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 19 | |
| 20 | subs r3, r2, #32 |
| 21 | rsb ip, r2, #32 |
| 22 | movmi ah, ah, lsl r2 |
| 23 | movpl ah, al, lsl r3 |
| 24 | orrmi ah, ah, al, lsr ip |
| 25 | mov al, al, lsl r2 |
| 26 | mov pc, lr |