New test.
authorJeff Law <law@gcc.gnu.org>
Tue, 5 May 1998 00:35:14 +0000 (18:35 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 5 May 1998 00:35:14 +0000 (18:35 -0600)
From-SVN: r19536

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

diff --git a/gcc/testsuite/gcc.c-torture/compile/980504-1.c b/gcc/testsuite/gcc.c-torture/compile/980504-1.c
new file mode 100644 (file)
index 0000000..7b757cc
--- /dev/null
@@ -0,0 +1,28 @@
+typedef struct _geom_elem {
+  double        coeffs[6];
+} pGeomDefRec, *pGeomDefPtr;
+typedef struct _mpgeombanddef {
+       int     yOut;            
+       int     in_width;        
+} mpGeometryBandRec, *mpGeometryBandPtr;
+typedef void *pointer;
+typedef unsigned char  CARD8;
+typedef CARD8 BytePixel;
+void  BiGL_B  (OUTP,srcimg,width,sline,pedpvt,pvtband) pointer OUTP;
+pointer *srcimg;
+register int width;
+int sline;
+pGeomDefPtr pedpvt; mpGeometryBandPtr pvtband;
+{
+  register float s, t, st;
+  register int         isrcline,isrcpix;
+  register int         srcwidth = pvtband->in_width - 1;
+  register   BytePixel  val;
+  register   BytePixel  *ptrIn, *ptrJn;
+  register double a  = pedpvt->coeffs[0];
+  register double c  = pedpvt->coeffs[2];
+  register double srcpix  = a * ((double)(0.0000))  +  pedpvt->coeffs[1] * (pvtband->yOut + ((double)(0.0000)) ) +     pedpvt->coeffs[4];
+  register double srcline = c * ((double)(0.0000))  +  pedpvt->coeffs[3] * (pvtband->yOut + ((double)(0.0000)) ) +     pedpvt->coeffs[5];
+  if ( (isrcpix >= 0) && (isrcpix < srcwidth) )
+    val =      ptrIn[isrcpix]   * ((float)1. - s - t + st) + ptrIn[isrcpix+1] * (s - st) +     ptrJn[isrcpix]   * (t - st) +   ptrJn[isrcpix+1] * (st) +   (float)0.5 ;
+}