epiphany-modes.def 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Definitions of target machine for GNU compiler, Adapteva Epiphany cpu.
  2. Copyright (C) 2002-2015 Free Software Foundation, Inc.
  3. Contributed by Embecosm on behalf of Adapteva, Inc.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. GCC is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. CC_MODE (CC_Z); /* only Z valid - for add, testing result. */
  17. CC_MODE (CC_N_NE); /* N for not-equal (for lsl). */
  18. CC_MODE (CC_C_LTU); /* C for unsigned-less-than (for add with carry). */
  19. CC_MODE (CC_C_GTU); /* C for unsigned-greater-than (for sub with carry). */
  20. CC_MODE (CC_FP);
  21. CC_MODE (CC_FP_EQ); /* AZ for equal. */
  22. CC_MODE (CC_FP_ORD); /* AZ || ~AC for ordered. */
  23. CC_MODE (CC_FP_UNEQ); /* AZ || ~AC for unordered / equal. */
  24. CC_MODE (CC_FP_GTE); /* ~AC / AZ for greater than / equal. */
  25. #if 0 /* This would be needed for simplified NaN testing. */
  26. RESET_FLOAT_FORMAT (SF, motorola_single_format);
  27. RESET_FLOAT_FORMAT (DF, motorola_double_format);
  28. #endif
  29. VECTOR_MODES (INT, 4); /* V4QI V2HI */
  30. VECTOR_MODES (INT, 8); /* V8QI V4HI V2SI */
  31. VECTOR_MODE (FLOAT, SF, 2); /* V2SF */
  32. ADJUST_ALIGNMENT (V8QI, epiphany_vect_align);
  33. ADJUST_ALIGNMENT (V4HI, epiphany_vect_align);
  34. ADJUST_ALIGNMENT (V2SI, epiphany_vect_align);
  35. ADJUST_ALIGNMENT (V2SF, epiphany_vect_align);