This is the mail archive of the gcc-bugs@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]

[Bug target/59462] New: c-c++-common/cilk-plus/AN/builtin_func_double2.c fails on MIPS


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59462

            Bug ID: 59462
           Summary: c-c++-common/cilk-plus/AN/builtin_func_double2.c fails
                    on MIPS
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sje at gcc dot gnu.org
                CC: rsandifo at gcc dot gnu.org
            Target: mips*-*-*

The test c-c++-common/cilk-plus/AN/builtin_func_double2.c is failing on both of
my mips targets (mips-mti-elf and mips-mti-linux-gnu).  Here is a cutdown
test case:

int foo(void)
{
  int y, i;
  double array[100];
  for (i = 0; i < 100; i++)
    {
      array[i] = (double) i;
    }
  y = __sec_reduce_any_nonzero (array[:]);
  return y;
}

And here is the failure when compiled with g++ -O2 -ftree-vectorize -fcilkplus.
For some reason the same code compiled with C instead of C++ works.

install-mips-mti-elf/bin/mips-mti-elf-g++ -c -O2 -ftree-vectorize -fcilkplus
q.c
/tmp/cc3IU2hd.s: Assembler messages:
/tmp/cc3IU2hd.s:45: Error: invalid operands `movz $2,$4,$fcc0'


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