strcmp.S 416 B

123456789101112131415161718192021
  1. ; strcmp.S -- CRISv32 version.
  2. ; Copyright (C) 2008 AXIS Communications AB
  3. ; Written by Edgar E. Iglesias
  4. ;
  5. ; This source code is licensed under the GNU General Public License,
  6. ; Version 2. See the file COPYING for more details.
  7. .global strcmp
  8. .type strcmp,@function
  9. strcmp:
  10. 1:
  11. move.b [$r10+], $r12
  12. seq $r13
  13. sub.b [$r11+], $r12
  14. or.b $r12, $r13
  15. beq 1b
  16. nop
  17. ret
  18. movs.b $r12, $r10
  19. .size strcmp, . - strcmp