]> git.ipfire.org Git - thirdparty/gcc.git/commit
Vect: Try the pattern of vector signed integer SAT_TRUNC
authorPan Li <pan2.li@intel.com>
Mon, 14 Oct 2024 02:09:31 +0000 (10:09 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 21 Oct 2024 14:12:08 +0000 (22:12 +0800)
commit2987ca61003ee7d55b8b005ab4c9c679efc9558b
tree58f388d0fdb33aa34583fbbb163fc134335f80e2
parentbdbb74e38f30827568ba1224d52f5c86edb5d48c
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: Pan Li <pan2.li@intel.com>
gcc/tree-vect-patterns.cc