machmode.def 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* This file contains the definitions and documentation for the
  2. machine modes used in the the GNU compiler.
  3. Copyright (C) 1987 Free Software Foundation, Inc.
  4. This file is part of GNU CC.
  5. GNU CC is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY. No author or distributor
  7. accepts responsibility to anyone for the consequences of using it
  8. or for whether it serves any particular purpose or works at all,
  9. unless he says so in writing. Refer to the GNU CC General Public
  10. License for full details.
  11. Everyone is granted permission to copy, modify and redistribute
  12. GNU CC, but only under the conditions described in the
  13. GNU CC General Public License. A copy of this license is
  14. supposed to have been given to you along with GNU CC so you
  15. can know your rights and responsibilities. It should be in a
  16. file named COPYING. Among other things, the copyright notice
  17. and this notice must be preserved on all copies. */
  18. /* The first argument is the internal name of the machine mode
  19. used in the C source.
  20. By convention these are in UPPER_CASE, except for the lower case "mode".
  21. The second argument is the name of the machine mode in the
  22. external ASCII format read by for both the rtl and tree.
  23. By convention these names in UPPER_CASE.
  24. Third argument states the kind of representation:
  25. 0 - none
  26. 1 - unsigned int
  27. 2 - signed int
  28. 3 - float
  29. 4+n - complex whatever
  30. 8+n - bit field
  31. 16 and up - pointer
  32. 16 is normal pointer
  33. 17 is special bit-field pointer
  34. 18 is relative pointer.
  35. Fourth argument is the size of the object, in bytes.
  36. It is zero when the size is meaningless or not determined.
  37. Fifth arg is size of subunits of the object, in bytes.
  38. It is same as 4 except for complexes and EPmode,
  39. since they are really made of two equal size subunits. */
  40. DEF_MACHMODE (VOIDmode, "VOID", 0, 0, 0)
  41. DEF_MACHMODE (QImode, "QI", 2, 1, 1) /* signed types */
  42. DEF_MACHMODE (HImode, "HI", 2, 2, 2)
  43. DEF_MACHMODE (SImode, "SI", 2, 4, 4)
  44. DEF_MACHMODE (DImode, "DI", 2, 8, 8)
  45. DEF_MACHMODE (TImode, "TI", 2, 16, 16)
  46. DEF_MACHMODE (QFmode, "QF", 3, 1, 1)
  47. DEF_MACHMODE (HFmode, "HF", 3, 2, 2) /* floating types */
  48. DEF_MACHMODE (SFmode, "SF", 3, 4, 4)
  49. DEF_MACHMODE (DFmode, "DF", 3, 8, 8)
  50. DEF_MACHMODE (TFmode, "TF", 3, 16, 16)
  51. DEF_MACHMODE (CQImode, "CQI", 6, 2, 1)
  52. DEF_MACHMODE (CHImode, "CHI", 6, 4, 2) /* complex signed types */
  53. DEF_MACHMODE (CSImode, "CSI", 6, 8, 4)
  54. DEF_MACHMODE (CDImode, "CDI", 6, 16, 8)
  55. DEF_MACHMODE (CTImode, "CTI", 6, 32, 16)
  56. DEF_MACHMODE (CQFmode, "CQF", 7, 2, 1)
  57. DEF_MACHMODE (CHFmode, "CHF", 7, 4, 2) /* complex floating types */
  58. DEF_MACHMODE (CSFmode, "CSF", 7, 8, 4)
  59. DEF_MACHMODE (CDFmode, "CDF", 7, 16, 8)
  60. DEF_MACHMODE (CTFmode, "CTF", 7, 32, 16)
  61. DEF_MACHMODE (BWmode, "BW", 8, 0, 0) /* left-aligned bit field */
  62. DEF_MACHMODE (BUmode, "BU", 9, 0, 0) /* unsigned bit field */
  63. DEF_MACHMODE (BImode, "BI", 10, 0, 0) /* signed bit field */
  64. DEF_MACHMODE (BLKmode, "BLK", 0, 0, 0) /* Structure or large object. */
  65. DEF_MACHMODE (EPmode, "EP", 16, 8, 4) /* Function variable in algol */
  66. /* Includes a saved static chain */
  67. /* Note that Pmode is not a separate mode.
  68. It is defined as a macro the turns into one of the above
  69. (probably SImode). */
  70. /*
  71. Local variables:
  72. mode:c
  73. version-control: t
  74. End:
  75. */