123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /* __ashrdi3.S: 64-bit arithmetic shift right
- *
- * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.
- * Written by David Howells (dhowells@redhat.com)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- */
- .text
- .p2align 4
- .globl __ashrdi3
- .type __ashrdi3,@function
- __ashrdi3:
- andicc.p gr10,
- setlos
- andicc.p gr10,
- beqlr icc0,
- setlos.p
- ckeq icc1,cc4 ; cc4 is true if 0<N<32
-
- csrl.p gr9,gr10,gr9 ,cc4,
- csub gr5,gr10,gr5 ,cc4,
- csll.p gr8,gr5,gr4 ,cc4,
- csra gr8,gr10,gr8 ,cc4,
- cor.p gr4,gr9,gr9 ,cc4,
-
- csra gr8,gr10,gr9 ,cc4,
- csra.p gr8,gr6,gr8 ,cc4,
- bralr
- .size __ashrdi3, .-__ashrdi3
|