This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/37539] Hang for -O3



------- Comment #4 from irar at il dot ibm dot com  2008-09-18 07:26 -------
Reduced testcase:

typedef struct _OilFunctionImpl OilFunctionImpl;

struct _OilFunctionImpl {
 void *func;
};

static void
ayuv2yuyv_ref (int *d, int *src, int n)
{
  char *dest = (char *)d;
  int i;

  for(i=0;i<n/2;i++){
    dest[i*4 + 0] = (((src[i*2 + 0])>>16)&0xff);
    dest[i*4 + 1] = ((((src[i*2 + 0])>>8)&0xff) + (((src[i*2] +
1)>>8)&0xff))/2;
    dest[i*4 + 2] = (((src[i*2 + 1])>>16)&0xff);
    dest[i*4 + 3] = ((((src[i*2 + 0])>>0)&0xff) + (((src[i*2] +
1)>>0)&0xff))/2;
  }
}

OilFunctionImpl _oil_function_impl_ayuv2yuyv_ref = {(void *)ayuv2yuyv_ref};


-- 

irar at il dot ibm dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-18 07:26:21
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37539


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]