On Thu, Sep 18, 2014 at 2:25 PM, Alan Lawrence <alan.lawre...@arm.com> 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.