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

Re: 8/16bit oddities on avr-gcc


Even more funny with the variant using ctr % 64:

test ()
{
 unsigned int ivtmp.28;
 int pretmp.27;
 int pretmp.26;
 uint8_t pretmp.25;
 uint8_t ctr;
 int D.1293;
 int D.1292;

<bb 0>:
 ctr = 0;

<L0>:;
 __asm__ __volatile__("nop"::);
 xx = ctr;
 ctr = ctr + 1;
 if (ctr != 64) goto <L0>; else goto <L1>;

<L1>:;
 return;

}

Lots of variables ivtmp.*, but the counter handling and modulo is done
on the ctr, compared to the less-than, where counter handling and
comparison is done on one of the ivtmp.* variables.

...Michael


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