OSDN Git Service

* config/i386/i386.h (x86_prefetchw): New global variable.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Sep 2012 17:32:23 +0000 (17:32 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Sep 2012 17:32:23 +0000 (17:32 +0000)
commit58c94c3d3e185188ee9b3be4c9f599268f5dcea4
tree2d32fde20f062ec7bf9a9bebe0a8dfafa4fc2b87
parent977754837714054e7ae12f27db2a9f40994d32d7
* config/i386/i386.h (x86_prefetchw): New global variable.
(TARGET_PREFETCHW): New macro.
* config/i386/i386.c (PTA_PREFETCHW): Ditto.
(processor_alias_table): Add PTA_PREFETCHW to
bdver1, bdver2 and btver1.
(ix86_option_override_internal): Set x86_prefetchw for
PTA_PREFETCHW targets.
* config/i386/i386.md (prefetch): Expand to prefetchw
for TARGET_PREFETCHW.
(*prefetch_3dnow_<mode>): Also enable for TARGET_PREFETCHW.

Backport from mainline
2012-08-13  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386.md (prefetch): Do not assert mode of operand 0.
(*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
Rename to ...
(*prefetch_sse): ... this.
(*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
Rename to ...
(*prefetch_3dnow): ... this.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@191272 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.h
gcc/config/i386/i386.md