https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77270

--- Comment #11 from uros at gcc dot gnu.org ---
Author: uros
Date: Sun Aug 28 16:30:32 2016
New Revision: 239810

URL: https://gcc.gnu.org/viewcvs?rev=239810&root=gcc&view=rev
Log:
        Backport from mainline
        2016-08-23  Venkataramanan Kumar  <venkataramanan.ku...@amd.com>

        * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
        for targets amdfam10 and barcelona.

        Backport from mainline
        2016-08-21  Uros Bizjak  <ubiz...@gmail.com>

        PR target/77270
        * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
        TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
        non-SSE2 athlons only, otherwise prefer SSE prefetches.

        Backport from mainline
        2016-08-19  Uros Bizjak  <ubiz...@gmail.com>

        PR target/77270
        * config/i386/i386.c (ix86_option_override_internal): Remove
        PTA_PRFCHW from entries that also have PTA_3DNOW flag.
        Enable SSE prefetch also for TARGET_PREFETCHWT1.
        Do not try to enable TARGET_PRFCHW ISA flag here.
        * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
        Rewrite expander function body.
        (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.

testsuite/ChangeLog:

        Backport from mainline
        2016-08-24  Uros Bizjak  <ubiz...@gmail.com>

        PR target/77270
        * gcc.dg/tree-ssa/loop-28.c: Also compile on 32bit x86 targets.
        (dg-options): Use -march=amdfam10 instead of -march=athlon.
        * gcc.dg/tree-ssa/update-unroll-1.c: Ditto.
        * gcc.dg/tree-ssa/prefetch-3.c: Ditto.
        * gcc.dg/tree-ssa/prefetch-4.c: Ditto.
        * gcc.dg/tree-ssa/prefetch-5.c: Ditto.
        * gcc.dg/tree-ssa/prefetch-6.c: Ditto.  Do not require sse2
        effective target.  Remove scan-assembler-times directives.
        * gcc.dg/tree-ssa/prefetch-7.c: Ditto.
        * gcc.dg/tree-ssa/prefetch-8.c: Ditto.
        * gcc.dg/tree-ssa/prefetch-9.c: Ditto.


Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/i386/i386.c
    branches/gcc-6-branch/gcc/config/i386/i386.md
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/loop-28.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/prefetch-3.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/prefetch-4.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/prefetch-5.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/prefetch-6.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/prefetch-7.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/prefetch-8.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/prefetch-9.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/update-unroll-1.c

Reply via email to