This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch][x86] Fix PR83618


Fix bug, when rdpid intrinsic used eax instead of rax in 64bit mode. Ok for trunk?

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".

Thanks,
Julia

Attachment: 0001-fix.patch
Description: 0001-fix.patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]