re PR target/80180 (Incorrect codegen from rdseed intrinsic use (CVE-2017-11671))
authorUros Bizjak <ubizjak@gmail.com>
Sat, 25 Mar 2017 16:34:09 +0000 (17:34 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 25 Mar 2017 16:34:09 +0000 (17:34 +0100)
commit59ba44930fb9d8c1e1c6c3b6de9be7ab77933284
tree1b6626e248444282f02aea682806c10c497c102d
parent7d437dc1a284841dbe752054095bbc4277a85eb4
re PR target/80180 (Incorrect codegen from rdseed intrinsic use (CVE-2017-11671))

PR target/80180
* config/i386/i386.c (ix86_expand_builtin)
<IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
flags reg setting and flags reg using instructions.
<IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
clobbering instructions to zero extend op2.

From-SVN: r246475
gcc/ChangeLog
gcc/config/i386/i386.c