OSDN Git Service

* config/i386/i386.md (round<mode>2): New expander.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Aug 2011 19:42:30 +0000 (19:42 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Aug 2011 19:42:30 +0000 (19:42 +0000)
commit56b61659bc19220b568850252e7109472dcbbeb2
tree6ba15c2675c44333e41b6c6c577891ecd9576e46
parentd7106cac86369b0c4b66a1ead60d13f729c99bcb
* config/i386/i386.md (round<mode>2): New expander.
* config/i386/i386.c (enum ix86_builtins): Add
IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
(struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
descriptions.
(ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.

testsuite/ChangeLog:

* gcc.target/i386/sse_4_1-round-vec.c: New test.
* gcc.target/i386/sse_4_1-roundf-vec.c: New test.
* gcc.target/i386/avx-round-vec.c: New test.
* gcc.target/i386/avx-roundf-vec.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178123 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/config/i386/i386.c
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx-round-vec.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx-roundf-vec.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/sse4_1-round-vec.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/sse4_1-roundf-vec.c [new file with mode: 0644]