ucmpdi2.S 760 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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/config.h>
  13. #include <linux/linkage.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. mov pc, lr
  32. #ifdef CONFIG_AEABI
  33. ENTRY(__aeabi_ulcmp)
  34. cmp xh, yh
  35. cmpeq xl, yl
  36. movlo r0, #-1
  37. moveq r0, #0
  38. movhi r0, #1
  39. mov pc, lr
  40. #endif