ucmpdi2.S 734 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #ifdef __ARMEB__
  14. #define xh r0
  15. #define xl r1
  16. #define yh r2
  17. #define yl r3
  18. #else
  19. #define xl r0
  20. #define xh r1
  21. #define yl r2
  22. #define yh r3
  23. #endif
  24. ENTRY(__ucmpdi2)
  25. cmp xh, yh
  26. cmpeq xl, yl
  27. movlo r0, #0
  28. moveq r0, #1
  29. movhi r0, #2
  30. mov pc, lr
  31. #ifdef CONFIG_AEABI
  32. ENTRY(__aeabi_ulcmp)
  33. cmp xh, yh
  34. cmpeq xl, yl
  35. movlo r0, #-1
  36. moveq r0, #0
  37. movhi r0, #1
  38. mov pc, lr
  39. #endif