This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Mode precision and bytesize
- From: "Paulo Matos" <pmatos at broadcom dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Fri, 10 May 2013 09:08:18 +0000
- Subject: Mode precision and bytesize
Hello,
Can someone please clarify the difference between the precision of a mode and its bytesize?
Also, if you create a CCMODE and ADJUST it's bytesize to 1, then it's currently impossible to change its precision to 8.
You end up with a bytesize of 1 and a precision of 4*BITS_PER_UNITS which doesn't sound right.
This is because precision is output in genmodes.c:emit_mode_precision and will output
tagged_printf ("%u*BITS_PER_UNIT", m->bytesize, m->name);
however at this point in time m->bytesize is still the original size of 4 (for a CCmode) before the evaluation of ADJUST_BYTESIZE in <target>-modes.def.
Is there a reason for it to be like this?
Cheers,
Paulo Matos