smulsi3_highpart.S 603 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright 2007 Analog Devices Inc.
  3. *
  4. * Licensed under the Clear BSD license or the GPL-2 (or later)
  5. */
  6. .align 2
  7. .global ___smulsi3_highpart;
  8. .type ___smulsi3_highpart, STT_FUNC;
  9. #ifdef CONFIG_ARITHMETIC_OPS_L1
  10. .section .l1.text
  11. #else
  12. .text
  13. #endif
  14. ___smulsi3_highpart:
  15. R2 = R1.L * R0.L (FU);
  16. R3 = R1.H * R0.L (IS,M);
  17. R0 = R0.H * R1.H, R1 = R0.H * R1.L (IS,M);
  18. R1.L = R2.H + R1.L;
  19. cc = ac0;
  20. R2 = cc;
  21. R1.L = R1.L + R3.L;
  22. cc = ac0;
  23. R1 >>>= 16;
  24. R3 >>>= 16;
  25. R1 = R1 + R3;
  26. R1 = R1 + R2;
  27. R2 = cc;
  28. R1 = R1 + R2;
  29. R0 = R0 + R1;
  30. RTS;
  31. .size ___smulsi3_highpart, .-___smulsi3_highpart