* gcc.c-torture/compile/990523-1.c: New test.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 May 1999 21:26:27 +0000 (21:26 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 May 1999 21:26:27 +0000 (21:26 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27113 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/990523-1.c [new file with mode: 0644]

index 6a00138..3b3dd32 100644 (file)
@@ -1,3 +1,7 @@
+Sun May 23 21:18:12 1999  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+       * gcc.c-torture/compile/990523-1.c: New test.
+
 Wed May 19 02:56:18 1999  Raja R Harinath <harinath@cs.umn.edu>
 
        * gcc.c-torture/compile/990519-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/990523-1.c b/gcc/testsuite/gcc.c-torture/compile/990523-1.c
new file mode 100644 (file)
index 0000000..5ab61f3
--- /dev/null
@@ -0,0 +1,30 @@
+extern float  decwin[512+32];
+
+int synth_1to1(float  *bandPtr,int channel,unsigned char *out,int *pnt)
+{
+  static const int step = 2;
+  short *samples = (short *) (out+*pnt);
+
+  float  *b0;
+  int clip = 0; 
+  int bo1;
+
+  {
+    register int j;
+    float  *window = decwin + 16 - bo1;
+    for (j=15;j;j--,b0-=0x20,window-=0x10,samples+=step)
+    {
+      float  sum;
+      sum -= *(--window) * *b0++;
+      sum -= *(--window) * *b0++;
+      sum -= *(--window) * *b0++;
+      sum -= *(--window) * *b0++;
+      sum -= *(--window) * *b0++;
+      sum -= *(--window) * *b0++;
+      sum -= *(--window) * *b0++;
+      sum -= *(--window) * *b0++;
+
+      if( ( sum ) > 32767.0) *( samples ) = 0x7fff; ( clip )++;  ;
+    }
+  }
+}