Skip to content
Snippets Groups Projects
Commit af766f2d authored by Uros Bizjak's avatar Uros Bizjak
Browse files

sse.md (copysign<mode>3): New expander.

	* config/i386/sse.md (copysign<mode>3): New expander.
	* config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
	* config/i386/i386.c (ix86_build_signbit_mask): Make public.
	Use ix86_build_const_vector.
	(enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
	IX86_BUILTIN_CPYSGNPD.
	(builtin_description): Add __builtin_ia32_copysignps and
	__builtin_ia32_copysignpd.
	(ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
	and BUILT_IN_COPYSIGNF.

testsuite/ChangeLog:

	* gcc.target/i386/sse-copysignf-vec.c: New test.
	* gcc.target/i386/sse2-copysign-vec.c: Ditto.

From-SVN: r149639
parent 8353dd9a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment