This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, MIPS, PR/61114] Migrate to reduc_..._scal optabs.
- From: Alan Lawrence <alan dot lawrence at arm dot com>
- To: Simon Dardis <Simon dot Dardis at imgtec dot com>, Matthew Fortune <Matthew dot Fortune at imgtec dot com>, "Moore, Catherine" <Catherine_Moore at mentor dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 22 Oct 2015 15:58:07 +0100
- Subject: Re: [PATCH, MIPS, PR/61114] Migrate to reduc_..._scal optabs.
- Authentication-results: sourceware.org; auth=none
- References: <B83211783F7A334B926F0C0CA42E32CAF38FDF at hhmail02 dot hh dot imgtec dot org> <56139E6A dot 5080807 at arm dot com> <B83211783F7A334B926F0C0CA42E32CAF3EB73 at hhmail02 dot hh dot imgtec dot org>
On closer inspection I think you can also remove this guy (from loongson.md):
(define_insn "reduc_uplus_v8qi"
[(set (match_operand:V8QI 0 "register_operand" "=f")
(unspec:V8QI [(match_operand:V8QI 1 "register_operand" "f")]
UNSPEC_LOONGSON_BIADD))]
"TARGET_HARD_FLOAT && TARGET_LOONGSON_VECTORS"
"biadd\t%0,%1"
[(set_attr "type" "fabs")])
as reduc_plus_scal_<mode> handles both signed and unsigned cases.
Cheers, Alan