mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-12 21:33:54 +08:00
Add another test case to exercise the previous MODE_PARTIAL_INT change.
gcc/testsuite/ PR other/92090 * gcc.target/powerpc/pr92090-2.c: New test. From-SVN: r277942
This commit is contained in:
parent
6a9c4224e4
commit
780bc8922b
@ -1,3 +1,8 @@
|
||||
2019-11-07 Peter Bergner <bergner@linux.ibm.com>
|
||||
|
||||
PR other/92090
|
||||
* gcc.target/powerpc/pr92090-2.c: New test.
|
||||
|
||||
2019-11-07 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* gcc.dg/tm/attrs-1.c: New test.
|
||||
|
44
gcc/testsuite/gcc.target/powerpc/pr92090-2.c
Normal file
44
gcc/testsuite/gcc.target/powerpc/pr92090-2.c
Normal file
@ -0,0 +1,44 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-mdejagnu-cpu=power8 -Os -mbig -w" } */
|
||||
|
||||
/* Verify that we don't ICE. */
|
||||
|
||||
int a;
|
||||
static _Atomic long double b, c, d, m;
|
||||
double n;
|
||||
extern int foo (void);
|
||||
extern void bar (int, int, int, int);
|
||||
|
||||
void
|
||||
bug (void)
|
||||
{
|
||||
b = 1.79769313486231580793728971405301199e308L;
|
||||
for (int i = 0; i < 10000; i++)
|
||||
if (__builtin_isinf (n))
|
||||
b;
|
||||
c = 1;
|
||||
int e, f, g, h;
|
||||
while (a)
|
||||
;
|
||||
for (int i; i; i++)
|
||||
{
|
||||
double j = c /= foo ();
|
||||
if (__builtin_isinf (j))
|
||||
{
|
||||
if (foo == 1 << 31)
|
||||
e++;
|
||||
f++;
|
||||
c = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (foo == 1 << 30)
|
||||
g++;
|
||||
h++;
|
||||
c = 1;
|
||||
}
|
||||
}
|
||||
bar (e, f, g, h);
|
||||
d = 1.79769313486231580793728971405301199e308L;
|
||||
m = 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user