aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-05-24 21:12:42 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-05-24 21:12:42 +0200
commit8e0dc0549a9d11fbf580db3ac45b49b5479dff13 (patch)
treea05c2972f1774a5a2508afb5e8535329b4c6b8bd
parenta0caac985d4e6d749470313e844c020db522eb5d (diff)
downloadgcc-8e0dc0549a9d11fbf580db3ac45b49b5479dff13.zip
gcc-8e0dc0549a9d11fbf580db3ac45b49b5479dff13.tar.gz
gcc-8e0dc0549a9d11fbf580db3ac45b49b5479dff13.tar.bz2
i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
* config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define. * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES rather than X86_TUNE_AVOID_4BYTE_PREFIXES. From-SVN: r236662
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/i386/constraints.md2
-rw-r--r--gcc/config/i386/i386.h2
3 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 90b14cb..8c61f1d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2016-05-24 Jakub Jelinek <jakub@redhat.com>
+ * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
+ * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
+ rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
+
* config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
Limit 1st alternative to noavx isa, split 2nd alternative into one
noavx and one avx alternative, use *x and Bm in the former and
diff --git a/gcc/config/i386/constraints.md b/gcc/config/i386/constraints.md
index 44f2d33..a2466a9 100644
--- a/gcc/config/i386/constraints.md
+++ b/gcc/config/i386/constraints.md
@@ -142,7 +142,7 @@
"@internal Any x87 register when 80387 FP arithmetic is enabled.")
(define_register_constraint "Yr"
- "TARGET_SSE ? (X86_TUNE_AVOID_4BYTE_PREFIXES ? NO_REX_SSE_REGS : ALL_SSE_REGS) : NO_REGS"
+ "TARGET_SSE ? (TARGET_AVOID_4BYTE_PREFIXES ? NO_REX_SSE_REGS : ALL_SSE_REGS) : NO_REGS"
"@internal Lower SSE register when avoiding REX prefix and all SSE registers otherwise.")
(define_register_constraint "Yv"
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 92823ac..47427f5 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -465,6 +465,8 @@ extern unsigned char ix86_tune_features[X86_TUNE_LAST];
ix86_tune_features[X86_TUNE_SLOW_PSHUFB]
#define TARGET_VECTOR_PARALLEL_EXECUTION \
ix86_tune_features[X86_TUNE_VECTOR_PARALLEL_EXECUTION]
+#define TARGET_AVOID_4BYTE_PREFIXES \
+ ix86_tune_features[X86_TUNE_AVOID_4BYTE_PREFIXES]
#define TARGET_FUSE_CMP_AND_BRANCH_32 \
ix86_tune_features[X86_TUNE_FUSE_CMP_AND_BRANCH_32]
#define TARGET_FUSE_CMP_AND_BRANCH_64 \