[PATCH] AAPCS-VFP: double and long double have the same machine type

Oliver Stannard oliver.stannard at arm.com
Thu Feb 6 07:03:15 PST 2014


I was mistaken, that check was required, because this code is shared between
ARM and AArch64.  I have attached an updated patch which puts the check back
in, and adds a test for this in AArch64.

 

Oliver

 

From: Oliver Stannard [mailto:oliver.stannard at arm.com] 
Sent: 05 February 2014 17:23
To: 'Renato Golin'
Cc: Clang Commits
Subject: RE: [PATCH] AAPCS-VFP: double and long double have the same machine
type

 

Whoops, I had meant to remove that. Updated patch attached.

 

Oliver

 

From: Renato Golin [mailto:renato.golin at linaro.org] 
Sent: 05 February 2014 16:17
To: Oliver Stannard
Cc: Clang Commits
Subject: Re: [PATCH] AAPCS-VFP: double and long double have the same machine
type

 

On 5 February 2014 14:25, Oliver Stannard <oliver.stannard at arm.com> wrote:

In the AAPCS, for the purposes of deciding if a struct is a homogeneous
floating-point aggregate, two fundamental types are considered the same if
their machine types are the same. The `double' and `long double' C types
have the same machine type in the 32-bit version of the ABI.

 

Hi Oliver,

 

Shouldn't getTypeSize() return the same value for both?

 

--renato 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140206/2ad2657e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hfa-long-double-3.patch
Type: application/octet-stream
Size: 2636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140206/2ad2657e/attachment.obj>


More information about the cfe-commits mailing list