From 028622945d8c0a009a8fba8963c12395a4e1d5ae Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Fri, 21 Aug 1998 23:00:36 +0000 Subject: [PATCH] * gcc.c-torture/compile/980821-1.c: New test. From-SVN: r21899 --- gcc/testsuite/ChangeLog | 6 +++++- gcc/testsuite/gcc.c-torture/compile/980821-1.c | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/gcc.c-torture/compile/980821-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fc898bf2b10..26ae47a6ec6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,10 @@ +Fri Aug 21 23:59:18 1998 Jeffrey A Law (law@cygnus.com) + + * gcc.c-torture/compile/980821-1.c: New test. + Fri Aug 21 03:14:04 1998 Jeffrey A Law (law@cygnus.com) - * gcc.c-torture/980526-2.c: Disable for targets with 16bit ints. + * gcc.c-torture/execute/980526-2.c: Disable for targets with 16bit ints. 1998-08-19 Mark Mitchell diff --git a/gcc/testsuite/gcc.c-torture/compile/980821-1.c b/gcc/testsuite/gcc.c-torture/compile/980821-1.c new file mode 100644 index 00000000000..9eb1ac4ca1c --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/980821-1.c @@ -0,0 +1,15 @@ +typedef int __int32_t; +int __kernel_rem_pio2(int prec) +{ + __int32_t i, jz; + double fw, fq[20]; + switch(prec) { + case 2: + fw = 0.0; + case 3: + for (i=jz;i>0;i--) { + fw = fq[i-1] +fq[i]; + fq[i-1] = fw; + } + } +}