[Bug target/83862] New: powerpc: ICE in signbit testcase

2018-01-15 Thread raji at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83862

Bug ID: 83862
   Summary: powerpc: ICE in signbit testcase
   Product: gcc
   Version: 8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: raji at linux dot vnet.ibm.com
  Target Milestone: ---

> cat t.c
#define _GNU_SOURCE
#include 
#include 
#include 

struct test_f_i_data
{
  const char *arg_str;
  long double arg;
  int expected;
  int exceptions;
};

static const struct test_f_i_data test_data[] =
  {
{ "1", 0, 0, 0x8000 }, 
{ "1", 0, 0, 0x8000 }, 
{ "1", 0, 0, 0x8000 }
  };
void
check_bool (const char *test_name, int computed, int expected,
int exceptions)
{
  printf (" is: %d\n", computed);
  printf (" should be:  %d\n", expected);
}

int
main (int argc, char **argv)
{
  for (size_t i = 0; i < sizeof (test_data) / sizeof (test_data)[0]; i++)
   {
   char *test_name;
   asprintf (&test_name, "(%s)",((test_data)[i].arg_str));
   check_bool (test_name, signbit ((test_data)[i].arg)
 , (test_data)[i].expected, (test_data)[i].exceptions);
   free (test_name);
   }
}

> gcc-8 --version
gcc-8 (SUSE Linux) 8.0.0 20180102 (experimental) [trunk revision 256068]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

> gcc-8  -o t -g -mabi=ieeelongdouble -Wno-psabi t.c

> gcc-8  -o t -g -O2  t.c 

> gcc-8  -o t -g -O2 -mabi=ieeelongdouble -Wno-psabi t.c 
during RTL pass: split2
t.c: In function ‘main’:
t.c:39:1: internal compiler error: in change_address_1, at emit-rtl.c:2268
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.

[Bug target/85075] powerpc: ICE in iszero testcase

2018-08-01 Thread raji at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85075

Rajalakshmi S  changed:

   What|Removed |Added

 Status|RESOLVED|VERIFIED

--- Comment #6 from Rajalakshmi S  ---
Verified that ICE is fixed.

[Bug target/85075] New: powerpc: ICE in iszero testcase

2018-03-25 Thread raji at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85075

Bug ID: 85075
   Summary: powerpc: ICE in iszero testcase
   Product: gcc
   Version: 8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: raji at linux dot vnet.ibm.com
  Target Milestone: ---

> cat test-math-iszero.cc
#include 
int
main (void)
{
  long double q1 = 0;
  _Float128 q = 0;

  iszero (q1);
  iszero (q);
  return 0;
}

>  g++-8 test-math-iszero.cc   -mfloat128 -mabi=ieeelongdouble -Wno-psabi 
test-math-iszero.cc:11:1: error: Two symbols with same comdat_group are not
linked by the same_comdat_group list.
 }
 ^
_Z6iszeroIU10__float128EbT_/175 (bool iszero(__T) [with __T = __ieee128])
@0x7fffa4cc5a90
  Type: function definition analyzed
  Visibility: no_reorder public weak comdat
comdat_group:_Z6iszeroIU10__float128EbT_ one_only
  previous sharing asm name: 174
  References: 
  Referring: 
  First run: 0
  Function flags: body
  Called by: int main()/173 
  Calls: 
_Z6iszeroIU10__float128EbT_/174 (bool iszero(__T) [with __T = long double])
@0x7fffa4cc5920
  Type: function definition analyzed
  Visibility: no_reorder public weak comdat
comdat_group:_Z6iszeroIU10__float128EbT_ one_only
  next sharing asm name: 175
  References: 
  Referring: 
  First run: 0
  Function flags: body
  Called by: int main()/173 
  Calls: 
test-math-iszero.cc:11:1: internal compiler error: symtab_node::verify failed
0x7fffa8eb429b ???
../csu/libc-start.c:308
0x7fffa8eb4497 ???
../sysdeps/unix/sysv/linux/powerpc/libc-start.c:102
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://bugs.opensuse.org/> for instructions.

> g++-8 --version
g++-8 (SUSE Linux) 8.0.1 20180226 (experimental) [trunk revision 257983]
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

> ld --version
GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.30.0.20180226-1
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

> ldd --version
ldd (GNU libc) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.