ucmpdi2.S 498 B

12345678910111213141516171819202122232425262728
  1. ! Copyright (C) 2012 by Imagination Technologies Ltd.
  2. !
  3. ! 64-bit unsigned compare routine.
  4. !
  5. .text
  6. .global ___ucmpdi2
  7. .type ___ucmpdi2,function
  8. ! low high
  9. ! u64 a (D0Ar2, D1Ar1)
  10. ! u64 b (D0Ar4, D1Ar3)
  11. ___ucmpdi2:
  12. ! start at 1 (equal) and conditionally increment or decrement
  13. MOV D0Re0,#1
  14. ! high words
  15. CMP D1Ar1,D1Ar3
  16. ! or if equal, low words
  17. CMPEQ D0Ar2,D0Ar4
  18. ! unsigned compare
  19. SUBLO D0Re0,D0Re0,#1
  20. ADDHI D0Re0,D0Re0,#1
  21. MOV PC,D1RtP
  22. .size ___ucmpdi2,.-___ucmpdi2