| /* __ucmpdi2.S: 64-bit unsigned compare |
| * Copyright (C) 2006 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. |
| ############################################################################### |
| # int __ucmpdi2(unsigned long long a [GR8:GR9], |
| # unsigned long long b [GR10:GR11]) |
| # - returns 0, 1, or 2 as a <, =, > b respectively. |
| ############################################################################### |
| .type __ucmpdi2,@function |
| bclr icc0,#2 ; a.msw < b.msw |
| bhilr icc0,#0 ; a.msw > b.msw |
| subcc.p gr9,gr11,gr0,icc1 |
| cor.p gr9,gr0,gr8, cc6,#1 |
| .size __ucmpdi2, .-__ucmpdi2 |