Skip to content
Snippets Groups Projects
Commit 2987ca61 authored by Pan Li's avatar Pan Li
Browse files

Vect: Try the pattern of vector signed integer SAT_TRUNC


Almost the same as vector unsigned integer SAT_TRUNC, try to match
the signed version during the vector pattern matching.

The below test suites are passed for this patch.
* The rv64gcv fully regression test.
* The x86 bootstrap test.
* The x86 fully regression test.

gcc/ChangeLog:

	* tree-vect-patterns.cc (gimple_signed_integer_sat_trunc): Add
	new func decl for signed SAT_TRUNC.
	(vect_recog_sat_trunc_pattern): Try signed match pattern for
	the SAT_TRUNC.

Signed-off-by: default avatarPan Li <pan2.li@intel.com>
parent bdbb74e3
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