/* __ucmpdi2.S: 64-bit unsigned compare1*2* Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License7* as published by the Free Software Foundation; either version8* 2 of the License, or (at your option) any later version.9*/101112.text13.p2align 41415###############################################################################16#17# int __ucmpdi2(unsigned long long a [GR8:GR9],18# unsigned long long b [GR10:GR11])19#20# - returns 0, 1, or 2 as a <, =, > b respectively.21#22###############################################################################23.globl __ucmpdi224.type __ucmpdi2,@function25__ucmpdi2:26or.p gr8,gr0,gr427subcc gr8,gr10,gr0,icc028setlos.p #0,gr829bclr icc0,#2 ; a.msw < b.msw3031setlos.p #2,gr832bhilr icc0,#0 ; a.msw > b.msw3334subcc.p gr9,gr11,gr0,icc135setlos #0,gr836setlos.p #2,gr937setlos #1,gr738cknc icc1,cc639cor.p gr9,gr0,gr8, cc6,#140cckls icc1,cc4, cc6,#141andcr cc6,cc4,cc442cor gr7,gr0,gr8, cc4,#143bralr44.size __ucmpdi2, .-__ucmpdi2454647