This is the mail archive of the
mailing list for the GCC project.
40 bit integer type
- From: "Jan Hoogerbrugge" <hoogerbrugge at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 17 Mar 2006 14:56:11 +0100
- Subject: 40 bit integer type
I want to introduce a __int40 data type in my port for 40 bits integers. I
type = make_signed_type(40);
The result is that __int40 variables are mapped on DImode with all kinds of
shifts and ands to obtain a 40 bits data type. Is there a way to avoid this?
I want to allocate these __int40 data to dedicated 40 bits registers. I
add some peepholes to remove the redundant shifts and ands but that does
not help in all cases. It is also not a nice solution for this problem. So
does anyone know a better solution?
I also tried to use the partial DI mode type but that did not work well.