This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Vector Registers
- To: Ranjith Kumaran <ranjith at cygnus dot com>
- Subject: Vector Registers
- From: Doug Evans <dje at transmeta dot com>
- Date: Fri, 18 Aug 2000 10:39:25 -0700 (PDT)
- Cc: cgen at sourceware dot cygnus dot com
- References: <Pine.SUN.3.91.1000816081416.13552H@rtl.cygnus.com>
Howdy.
Ranjith Kumaran writes:
> Are there any examples out there of a good way of modelling vector
> registers?
Modelling N-dimensional registers (N>1) complicates things a fair bit.
I tried to stay with the GCC model on this one.
[We do have a better language than C though, but we also have to
consider the application that will ultimately be using the data.
Maybe some day if it doesn't excessively complicate the common case.]
Passing around a single number to designate the register is nice and
simple. Have you tried (figuratively) flattening the vector out?