summaryrefslogtreecommitdiff
path: root/gcc/machmode.def
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-04 00:34:50 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-04 00:34:50 +0000
commit10027da64703d81dc132b5ee4830d195ccd5901c (patch)
tree7ebaf99cf0aa2597bde7047ff09e61f869c3777d /gcc/machmode.def
parentb77a0a9c98561474df3ba328ba13d4f97365b91c (diff)
downloadgcc-10027da64703d81dc132b5ee4830d195ccd5901c.tar.gz
2001-11-03 Aldy Hernandez <aldyh@redhat.com>
* machmode.def: Add documentation for the seventh argument in vector modes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46753 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/machmode.def')
-rw-r--r--gcc/machmode.def9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/machmode.def b/gcc/machmode.def
index f84c2e7149d..580f6ff61c6 100644
--- a/gcc/machmode.def
+++ b/gcc/machmode.def
@@ -59,8 +59,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
It is same as the fifth argument except for complexes and vectors,
since they are really made of many equal size subunits.
- Seventh arg is next wider natural mode of the same class.
- 0 if there is none. */
+ Seventh arg is next wider natural mode of the same class. 0 if
+ there is none. Vector modes use this field to point to the next
+ vector size, so we can iterate through the different vectors modes.
+ The ordering is by increasing byte size, with QI coming before HI,
+ HI before SI, etc. */
/* VOIDmode is used when no mode needs to be specified,
as for example on CONST_INT RTL expressions. */
@@ -109,7 +112,7 @@ DEF_MACHMODE (COImode, "COI", MODE_COMPLEX_INT, BITS_PER_UNIT*64, 64, 32, VOIDmo
/* There are no V1xx vector modes. These are equivalent to normal
scalar modes. */
/* The wider mode field for vectors follows in order of increasing bit
- size with QI coming before HI, HI before SI, and SI before DF
+ size with QI coming before HI, HI before SI, and SI before DI
within same bit sizes. */
DEF_MACHMODE (V2QImode, "V2QI", MODE_VECTOR_INT, BITS_PER_UNIT*2, 2, 1, V4QImode)
DEF_MACHMODE (V2HImode, "V2HI", MODE_VECTOR_INT, BITS_PER_UNIT*4, 4, 2, V8QImode)