ChangeLog/
commitd91f949bee59344edfe3f78123892807a9486c60
authorkyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Dec 2013 11:23:39 +0000 (5 11:23 +0000)
committerkyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Dec 2013 11:23:39 +0000 (5 11:23 +0000)
tree3ba8009e419b90953be79c501271dcc9db592b66
parent1b79e05825350a0b157de4653eefdb1abe9a6ae1
ChangeLog/
        * config/i386/i386.c(IX86_BUILTIN_READ_FLAGS): New.
(IX86_BUILTIN_WRITE_FLAGS): Ditto.
(ix86_init_mmx_sse_builtins): Define
__builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
__builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
(ix86_expand_builtin): Expand them.
* config/i386/ia32intrin.h (__readeflags): New.
(__writeeflags): Ditto.
* gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
(*popfl<mode>1): Ditto.

testsuite/ChangeLog/
        * gcc.target/i386/readeflags-1.c: New.
        * gcc.target/i386/writeeflags-1.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205703 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/config/i386/ia32intrin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/readeflags-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/writeeflags-1.c [new file with mode: 0644]