This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trans-mem] rms-tm bug report
- From: Richard Henderson <rth at redhat dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: Patrick Marlier <patrick dot marlier at unine dot ch>, FELBER Pascal <pascal dot felber at unine dot ch>, Javier Arias <javier dot arias at bsc dot es>, "gokcen dot kestor at bsc dot es" <gokcen dot kestor at bsc dot es>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 May 2010 14:23:15 -0700
- Subject: Re: [trans-mem] rms-tm bug report
- References: <4BF4DD38.3080708@unine.ch> <20100524171655.GA19900@redhat.com> <20100524171812.GB19900@redhat.com>
On 05/24/2010 10:18 AM, Aldy Hernandez wrote:
>> DEF_PRIMITIVE_TYPE (BT_I16, builtin_type_for_size (BITS_PER_UNIT*16, 1))
>> +DEF_PRIMITIVE_TYPE (BT_I32, builtin_type_for_size (BITS_PER_UNIT*32, 1))
Using 16- and 32-byte integers isn't going to cut it. In particular,
that may well use the wrong calling convention. For instance, on
x86-64 a 16-byte integer is passed in two integer registers, whereas
a vector mode is passed in one vector register.
I told you that you'd need to use callbacks into the backend for this.
r~