This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] model vector widening multiplication for the spu


This patch models vector widening multiplication idioms for the spu. Tested
on the vectorizer testcases (one additional testcase now gets vectorized:
vect-widen-mult-s16.c).
ok to commit once passes full make check?

dorit

:ADDPATCH (spu):

ChangeLog:

        * config/spu/spu.md (vec_widen_umult_hi_v8hi): New.
        (vec_widen_umult_lo_v8hi, vec_widen_smult_hi_v8hi): New.
        (vec_widen_smult_lo_v8hi): New.
        * config/spu/spu.c (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN):
Defined.
        (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Defined.
        (spu_builtin_mul_widen_even, spu_builtin_mul_widen_odd): New.

Testsuite Changelog:

        * lib/target-supports.exp: Add spu to
        check_effective_target_vect_widen_mult_hi_to_si.

Patch:

(See attached file: dec19.spupatch.txt)

Attachment: dec19.spupatch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]