diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-05 22:53:20 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-05 22:53:20 +0000 |
commit | 2efe013a4efac319a5a96defb3fd314c861d6091 (patch) | |
tree | 0e38d220391b2faf02c63c5c9e8a4a3669cad4ad /gcc/testsuite | |
parent | 95e215c888aeb5dcf1fe33b6f9d2dff9a56dc969 (diff) | |
download | gcc-2efe013a4efac319a5a96defb3fd314c861d6091.tar.gz |
* gcc.c-torture/execute/extzvsi.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56868 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/extzvsi.c | 31 |
2 files changed, 35 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0fa538279f8..adc9f532c9b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.c-torture/execute/extzvsi.c b/gcc/testsuite/gcc.c-torture/execute/extzvsi.c new file mode 100644 index 00000000000..ba251271896 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/extzvsi.c @@ -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; +} |