From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14684 invoked by alias); 22 Sep 2014 10:42:13 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 14674 invoked by uid 89); 22 Sep 2014 10:42:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f45.google.com Received: from mail-wg0-f45.google.com (HELO mail-wg0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 22 Sep 2014 10:42:11 +0000 Received: by mail-wg0-f45.google.com with SMTP id x13so1910773wgg.28 for ; Mon, 22 Sep 2014 03:42:08 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.36.244 with SMTP id t20mr14637512wij.73.1411382528809; Mon, 22 Sep 2014 03:42:08 -0700 (PDT) Received: by 10.194.20.69 with HTTP; Mon, 22 Sep 2014 03:42:08 -0700 (PDT) In-Reply-To: <541ACF23.3050602@arm.com> References: <541AC4D2.9040901@arm.com> <541ACF23.3050602@arm.com> Date: Mon, 22 Sep 2014 10:42:00 -0000 Message-ID: Subject: Re: [PATCH 8/14][Testsuite] Add tests of reductions using whole-vector-shifts (ior) From: Richard Biener To: Alan Lawrence Cc: "gcc-patches@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg01792.txt.bz2 On Thu, Sep 18, 2014 at 2:25 PM, Alan Lawrence wrote: > These are like the previous patch, but using | rather than * - I was unable > to get the previous test to pass on PowerPC and MIPS. > > I note there is no inherent vector operation here - a bitwise OR across a > word, and a "reduction via shifts" using scalar (not vector) ops would be > all that's necessary. However, GCC doesn't exploit this possibility at > present, and I don't have any plans at present to add such myself. > > Passing on x86_64-linux-gnu, aarch64-none-elf, aarch64_be-none-elf, > arm-none-eabi. > The 'scan-tree-dump' part passes on mips64 and powerpc (although the latter > is disabled as check_effective_target_whole_vector_shift gives 0, as per > previous patch) Ok. Thanks, Richard. > gcc/testsuite/ChangeLog: > > * gcc.dg/vect/vect-reduc-or_1.c: New test. > * gcc.dg/vect/vect-reduc-or_2.c: Likewise.