PATCH: PR target/35657: TDmode isn't aligned at 128bit when passing to a function
H.J. Lu
hjl.tools@gmail.com
Thu Mar 27 17:52:00 GMT 2008
On Thu, Mar 27, 2008 at 7:02 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>
> On Thu, Mar 27, 2008 at 2:33 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>
> > Decimal floating point isn't covered by the ia32 psABI. Gcc is the
> > first compiler
> > which implements DFP on ia32 and is defining the de facto DFP psABI. I don't
> > see a reason not to align them to their natural boundary when passing them
> > on stack. I'd like to install it on trunk and 4.3.1.
>
> I assume that DFP passing will be specified in the next revision of psABI.
>
> The patch is OK for mainline, but please revert runtime part of my
> previous patch [1][2] that forced unaligned moves when TDmode (TImode)
> values were moved to/from the stack. There is no need for this
> functionality, once TDmode values are aligned to their natural
> boundaries.
>
> Also, please re-test your change (with my patch reverted) with
> "--with-arch=core2" configured compiler, to check if problems [3]
> resurfaced.
>
> Regarding 4.3.1 support - since this is an ABI change w.r.t released
> compiler, RMs should have their last word. IMO, at least a notice in
> release notes is needed
>
> Thanks,
> Uros.
>
> [1] http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01716.html
> [2] http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01863.html
> [3] http://gcc.gnu.org/ml/gcc-testresults/2007-05/msg01171.html
>
Hi,
I am testing this patch to revert TDmode unaligned memory check.
I applied it to trunk without my DFP alignment patch and configure gcc
with --with-arch=core2. I should get some DFP failures in 32bit. I will
then add my patch and re-run "make check". If all DFP failures are
gone, I will apply 2 patches to trunk first.
Thanks.
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-x86-dfp-unaligned-1.patch
Type: text/x-patch
Size: 1893 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080327/1e8591c5/attachment.bin>
More information about the Gcc-patches
mailing list