This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: BITS_PER_UNIT larger than 8 -- word addressing
- From: rridge at csclub dot uwaterloo dot ca (Ross Ridge)
- To: gcc at gcc dot gnu dot org
- Date: Mon, 26 Nov 2007 22:46:35 -0500 (EST)
- Subject: Re: BITS_PER_UNIT larger than 8 -- word addressing
Miceal Eagar writes:
>I'm working with a target that has 32-bit word addressing,
>so there is a define of BITS_PER_UNIT = 32.
According to the documentation, this changes the size of a byte to 32
bits, instead of the more usual 8 bits.
>This causes a problem: an error saying that there is
>no emulation for 'DI'. DImode has a precision of 128 bits,
>which is clearly incorrect. (All the other integer modes
>were incorrect as well.)
DImode is defined to be 8 bytes long so with a 32-bit byte I'd expect
it to be 256 bits. Trying use QImode and HImode for 32-bit and 64-bit
operations respectively.
Ross Ridge