ucmpdi2.S 797 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * linux/arch/arm/lib/ucmpdi2.S
  3. *
  4. * Author: Nicolas Pitre
  5. * Created: Oct 19, 2005
  6. * Copyright: Monta Vista Software, Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <linux/linkage.h>
  13. #include <asm/assembler.h>
  14. #ifdef __ARMEB__
  15. #define xh r0
  16. #define xl r1
  17. #define yh r2
  18. #define yl r3
  19. #else
  20. #define xl r0
  21. #define xh r1
  22. #define yl r2
  23. #define yh r3
  24. #endif
  25. ENTRY(__ucmpdi2)
  26. cmp xh, yh
  27. cmpeq xl, yl
  28. movlo r0, #0
  29. moveq r0, #1
  30. movhi r0, #2
  31. ret lr
  32. ENDPROC(__ucmpdi2)
  33. #ifdef CONFIG_AEABI
  34. ENTRY(__aeabi_ulcmp)
  35. cmp xh, yh
  36. cmpeq xl, yl
  37. movlo r0, #-1
  38. moveq r0, #0
  39. movhi r0, #1
  40. ret lr
  41. ENDPROC(__aeabi_ulcmp)
  42. #endif