sparc-modes.def 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Definitions of target machine for GCC, for Sun SPARC.
  2. Copyright (C) 2002-2015 Free Software Foundation, Inc.
  3. Contributed by Michael Tiemann (tiemann@cygnus.com).
  4. 64 bit SPARC V9 support by Michael Tiemann, Jim Wilson, and Doug Evans,
  5. at Cygnus Support.
  6. This file is part of GCC.
  7. GCC is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 3, or (at your option)
  10. any later version.
  11. GCC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with GCC; see the file COPYING3. If not see
  17. <http://www.gnu.org/licenses/>. */
  18. /* 128-bit floating point */
  19. FLOAT_MODE (TF, 16, ieee_quad_format);
  20. /* Add any extra modes needed to represent the condition code.
  21. On the SPARC, we have a "no-overflow" mode which is used when an add or
  22. subtract insn is used to set the condition code. Different branches are
  23. used in this case for some operations.
  24. We also have two modes to indicate that the relevant condition code is
  25. in the floating-point condition code register. One for comparisons which
  26. will generate an exception if the result is unordered (CCFPEmode) and
  27. one for comparisons which will never trap (CCFPmode).
  28. CCXmode and CCX_NOOVmode are only used by v9. */
  29. CC_MODE (CCX);
  30. CC_MODE (CC_NOOV);
  31. CC_MODE (CCX_NOOV);
  32. CC_MODE (CCFP);
  33. CC_MODE (CCFPE);
  34. /* Vector modes. */
  35. VECTOR_MODES (INT, 16); /* V16QI V8HI V4SI V2DI */
  36. VECTOR_MODES (INT, 8); /* V8QI V4HI V2SI */
  37. VECTOR_MODES (INT, 4); /* V4QI V2HI */
  38. VECTOR_MODE (INT, DI, 1); /* V1DI */
  39. VECTOR_MODE (INT, SI, 1); /* V1SI */