ucmpdi2.S 875 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #include <asm/export.h>
  15. #ifdef __ARMEB__
  16. #define xh r0
  17. #define xl r1
  18. #define yh r2
  19. #define yl r3
  20. #else
  21. #define xl r0
  22. #define xh r1
  23. #define yl r2
  24. #define yh r3
  25. #endif
  26. ENTRY(__ucmpdi2)
  27. cmp xh, yh
  28. cmpeq xl, yl
  29. movlo r0, #0
  30. moveq r0, #1
  31. movhi r0, #2
  32. ret lr
  33. ENDPROC(__ucmpdi2)
  34. EXPORT_SYMBOL(__ucmpdi2)
  35. #ifdef CONFIG_AEABI
  36. ENTRY(__aeabi_ulcmp)
  37. cmp xh, yh
  38. cmpeq xl, yl
  39. movlo r0, #-1
  40. moveq r0, #0
  41. movhi r0, #1
  42. ret lr
  43. ENDPROC(__aeabi_ulcmp)
  44. EXPORT_SYMBOL(__aeabi_ulcmp)
  45. #endif