]> git.ipfire.org Git - thirdparty/gcc.git/commit
Match: Refactor unsigned SAT_MUL form 1 mul and widen-mul by for [NFC]
authorPan Li <pan2.li@intel.com>
Thu, 25 Sep 2025 04:59:07 +0000 (12:59 +0800)
committerPan Li <pan2.li@intel.com>
Sun, 5 Oct 2025 11:07:57 +0000 (19:07 +0800)
commit6e37a5ac736f4ee2ebed9f20187c43d172d1e7cb
tree3c77debf581021ca472a9db31f673c813d872365
parentddd69ed8f85e7ce488a8c7638cd3c958938dfa33
Match: Refactor unsigned SAT_MUL form 1 mul and widen-mul by for [NFC]

Inspired by the previous patch, the form 1 of unsigned SAT_MUL
can be mul or widen-mul based.  So we can leverage the keyword
for to group it, and avoid the pattern duplication.

The below test suites are passed for this patch:
1. The rv64gcv fully regression tests.
2. The x86 bootstrap tests.
3. The x86 fully regression tests.

gcc/ChangeLog:

* match.pd: Refactor the form 1 of SAT_MUL by keyword for.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/match.pd