This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, i386]: Fix PR 68263, Vector "*mov<mode>_internal" fails to handle misaligned load/store from reload


Hello!

Attached patch fixes PR 68263. IAMCU ABI doesn't guarantee any
alignment, so we have to emit unaligned moves for SSE or AVX unaligned
operands.

2015-11-17  Uros Bizjak  <ubizjak@gmail.com>

    PR target/68263
    * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
    to 32 for IAMCU.
    * config/i386/sse.md (*mov<mode>_internal): Always enable
    AVX and SSE unaligned moves for IAMCU.

Patch fixes gcc.target/i386/iamcu/test_passing_floats.c execution
testsuite failure.

Patch was also tested by HJ on IAMCU target.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32},
committed to mainline SVN.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]