This is the mail archive of the gcc-patches@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]

New testcase for old iWMMXt bug


I've committed to mainline this testcase for a bug formerly seen (on 
csl-arm-branch) on ARM with -mcpu=iwmmxt.  (The bug itself no longer 
appears on mainline; similar bugs are known to have been fixed as a 
side-effect of other changes.)

2006-04-22  Joseph S. Myers  <joseph@codesourcery.com>

        * gcc.c-torture/compile/20060421-1.c: New testcase.

/* This test used to ICE on ARM with -mcpu=iwmmxt.  */
void
foo (void)
{
  long long int a;
  unsigned long b[249]; /* >= 249 causes failure */
  register unsigned int c;
  b[c] = (a & (1ULL << c)) ? 1 : 0;
}

-- 
Joseph S. Myers
joseph@codesourcery.com


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