]> git.ipfire.org Git - thirdparty/gcc.git/commit
Vect: Try the pattern of vector signed integer SAT_SUB
authorPan Li <pan2.li@intel.com>
Fri, 11 Oct 2024 03:58:30 +0000 (11:58 +0800)
committerPan Li <pan2.li@intel.com>
Sat, 12 Oct 2024 05:23:46 +0000 (13:23 +0800)
commitd339dbee2c1429fee8792a03f571fa75d036566b
treee189468dbbf26483bdb690f7fbd2c61f0f6386b4
parentb4f2fccf302bfe4ce704d11017b1a174eb3da89f
Vect: Try the pattern of vector signed integer SAT_SUB

Almost the same as vector unsigned integer SAT_SUB, 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_sub): Add new
func decl for signed SAT_SUB.
(vect_recog_sat_sub_pattern_transform): Update comments.
(vect_recog_sat_sub_pattern): Try the vector signed SAT_SUB
pattern.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/tree-vect-patterns.cc