Re: [patch/rfc] Don't include vector registers in ``info registers''

Andrew Cagney
2002-08-09T18:39:10Z

Not my day.

> It will eventually affect the i386 -- I've a patch to change the type of xmm [and mmx] registers to true vectors. When that is in, ``info registers'' will stop displaying the xmm registers.

I figured out why it wasn't already affecting the i386. That's been
converted to the new vec128i already and the test is out-of-date :-(

> + if (!print_all)
> + {
> + if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == TYPE_CODE_FLT)
> + continue;
> + if (TYPE_VECTOR (REGISTER_VIRTUAL_TYPE (i)))
> + continue;
> + }

This would need to read something like:

if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == struct or union
&& first field's type was a vector)
continue;

What the heck, time for ``register_attribute()''.

Andrew