re PR target/83618 (_rdpid_u32 doesn't work on 64-bit targets as gas expects the...
authorJulia Koval <julia.koval@intel.com>
Wed, 31 Jan 2018 11:06:20 +0000 (12:06 +0100)
committerJulia Koval <jkoval@gcc.gnu.org>
Wed, 31 Jan 2018 11:06:20 +0000 (12:06 +0100)
commite6c7bfdbf3db35b471dd67100cb482c14dab4077
tree8052e5d628ed1e126bd07b0d8e1bb9eb3faf6c89
parent7aec1b82097e03a40f8d6818d0321cea5883abdb
re PR target/83618 (_rdpid_u32 doesn't work on 64-bit targets as gas expects the 64-bit register)

PR target/83618

gcc/
* config/i386/i386.c (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
* config/i386/i386.md (rdpid_rex64) New.
(rdpid): Make 32bit only.

gcc/testsuite/
* gcc.target/i386/rdpid.c: Remove "eax".

From-SVN: r257229
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/rdpid.c