summaryrefslogtreecommitdiff
path: root/gcc/config/i386/x86intrin.h
diff options
context:
space:
mode:
authortocarip <tocarip@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-21 16:04:20 +0000
committertocarip <tocarip@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-21 16:04:20 +0000
commitd0b81ec0bfe4f407d69a65d0e72f01aa8d6ce302 (patch)
tree7ad8f4255de572112727df10b44ab413ff468127 /gcc/config/i386/x86intrin.h
parent3a4a2292e079def50a96321ec2fb7faadcc6b8f1 (diff)
downloadgcc-d0b81ec0bfe4f407d69a65d0e72f01aa8d6ce302.tar.gz
Add x86 pcommit instruction.
gcc/ * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET, OPTION_MASK_ISA_PCOMMIT_SET): New. (ix86_handle_option): Handle OPT_mpcommit. * config.gcc: Add pcommitintrin.h * config/i386/pcommitintrin.h: New file. * config/i386/cpuid.h (bit_PCOMMIT): Define. * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit. * config/i386/i386-c.c (ix86_target_macros_internal): Define __PCOMMIT__. * config/i386/i386.c (ix86_target_string): Add -mpcommit. (PTA_PCOMMIT): Define. (ix86_option_override_internal): Handle new option. (ix86_valid_target_attribute_inner_p): Add pcommit. (ix86_builtins): Add IX86_BUILTIN_PCOMMIT. (bdesc_special_args): Add __builtin_ia32_pcommit. * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define. * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT. (pcommit): New instruction. * config/i386/i386.opt: Add mpcommit. * config/i386/x86intrin.h: Include pcommitintrin.h. gcc/testsuite/ * g++.dg/other/i386-2.C: Add -mpcommit. * g++.dg/other/i386-3.C: Ditto. * gcc.target/i386/pcommit-1.c: New test. * gcc.target/i386/sse-12.c: Add new options. * gcc.target/i386/sse-13.c: Ditto. * gcc.target/i386/sse-14.c: Ditto. * gcc.target/i386/sse-22.c: Ditto. * gcc.target/i386/sse-23.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217935 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/x86intrin.h')
-rw-r--r--gcc/config/i386/x86intrin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/i386/x86intrin.h b/gcc/config/i386/x86intrin.h
index 7f9a519d609..fdb613f6e0d 100644
--- a/gcc/config/i386/x86intrin.h
+++ b/gcc/config/i386/x86intrin.h
@@ -77,6 +77,8 @@
#include <clwbintrin.h>
+#include <pcommitintrin.h>
+
#include <clflushoptintrin.h>
#include <xsavesintrin.h>