i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
authorJulia Koval <julia.koval@intel.com>
Sun, 14 May 2017 07:18:38 +0000 (09:18 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 14 May 2017 07:18:38 +0000 (09:18 +0200)
commitb9bdd60b8792e2d3173ecfacd5c25aac894a94e5
tree2daf342d4400b4c11dbf2d5ca6a48bb7e22ecd82
parent6fa95e0961bc15efa5ff52fc7358aee78a16a33c
i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.

* config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
* config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
(__builtin_ia32_xsetbv): New builtins.
* config/i386/i386.c (ix86_expand_special_args_builtin):
Process new types.
(ix86_expand_builtin): Special expand for new intrinsics.
* config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
(xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
* config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.

testsuite/ChangeLog:

* gcc.target/i386/xgetsetbv.c: New test.

From-SVN: r248028
gcc/ChangeLog
gcc/config/i386/i386-builtin-types.def
gcc/config/i386/i386-builtin.def
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/config/i386/xsaveintrin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/rdpid.c
gcc/testsuite/gcc.target/i386/xgetsetbv.c [new file with mode: 0644]