[i386] __builtin_ia32_stmxcsr could be pure
authorMarc Glisse <marc.glisse@inria.fr>
Wed, 21 Jun 2017 11:20:41 +0000 (13:20 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Wed, 21 Jun 2017 11:20:41 +0000 (11:20 +0000)
commita23ba8ccd0d3e16de01dfccf6304b9014e84f64f
treebd066312842faa4280dc0a00b01e4fc5e0c2cdcc
parented73f46f30cabeea4de64e7cce0682a7a610ffb6
[i386] __builtin_ia32_stmxcsr could be pure

2017-06-21  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* config/i386/i386.c (struct builtin_isa): New field pure_p.
Reorder for compactness.
(def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
(def_builtin_pure, def_builtin_pure2): New functions.
(ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.

gcc/testsuite/
* gcc.target/i386/getround.c: New file.

From-SVN: r249448
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/getround.c [new file with mode: 0644]