epiphany-asm.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Copyright (C) 1995-2022 Free Software Foundation, Inc.
  2. Contributed by Embecosm on behalf of Adapteva, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. Under Section 7 of GPL version 3, you are granted additional
  13. permissions described in the GCC Runtime Library Exception, version
  14. 3.1, as published by the Free Software Foundation.
  15. You should have received a copy of the GNU General Public License and
  16. a copy of the GCC Runtime Library Exception along with this program;
  17. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  18. <http://www.gnu.org/licenses/>. */
  19. /* ANSI concatenation macros. */
  20. #define CONCAT1(a, b) CONCAT2(a, b)
  21. #define CONCAT2(a, b) a ## b
  22. #define STRINGIFY2(a, b) STRINGIFY(a##b)
  23. #define STRINGIFY(a) #a
  24. /* Use the right prefix for global labels. */
  25. #define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
  26. #define FSTAB(X,T) .stabs STRINGIFY2(X##:F,T),36,0,__LINE__,SYM(X)
  27. #define FUNC(X) .type SYM(X),@function
  28. #define HIDDEN_FUNC(X) FUNC(X)` .hidden SYM(X)
  29. #define ENDFUNC0(X) CONCAT1(.Lfe_,X): .size X,CONCAT1(.Lfe_,X)-X
  30. #define ENDFUNC(X) ENDFUNC0(SYM(X))
  31. #define TMP0 r12
  32. #define TMP1 r16
  33. #define TMP2 r17
  34. #define TMP3 r18
  35. #define TMP4 r19
  36. #define TMP5 r20
  37. #define T_INT (0,1)
  38. .stabs "int:t(0,1)=r(0,1);-2147483648;2147483647;",128,0,1,0
  39. #define T_UINT (0,2)
  40. .stabs "unsigned int:t(0,2)=r(0,2);0;037777777777;",128,0,1,0