* gcc.c-torture/execute/extzvsi.c: New test.

From-SVN: r56868
This commit is contained in:
Alan Modra 2002-09-05 22:53:20 +00:00 committed by Alan Modra
parent bc401279d9
commit 7d97b0549d
2 changed files with 35 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-09-06 Alan Modra <amodra@bigpond.net.au>
* gcc.c-torture/execute/extzvsi.c: New test.
2002-09-05 Stan Shebs <shebs@apple.com>
* gcc.dg/weak-1.c: xfail on Darwin.

View file

@ -0,0 +1,31 @@
/* Failed on powerpc due to bad extzvsi pattern. */
struct ieee
{
unsigned int negative:1;
unsigned int exponent:11;
unsigned int mantissa0:20;
unsigned int mantissa1:32;
} x;
unsigned int
foo (void)
{
unsigned int exponent;
exponent = x.exponent;
if (exponent == 0)
return 1;
else if (exponent > 1)
return 2;
return 0;
}
int
main (void)
{
x.exponent = 1;
if (foo () != 0)
abort ();
return 0;
}