/******************************************************************************** * File: Step5.c * * Description: This microbenchmark answers the question: * 0 or 1 bit in global history register? * (if previous experiments detected a local component, * and no global component with >=2 history bits) * * Date: April 2002 * * Author: M.Milenkovic - milena@computer.org **********************************************************************************/ #define L3 6 /* pattern length */ void main(void) { int long unsigned i; /* loop index */ int a; /* variable with conditional assignment*/ int long unsigned liter = 10000000; /* number of iterations */ for (i=1;i<=liter;++i) { if ((i%L3) == 0) a=1; /* L3 > L */ if ((i%L3) == 0) a=1; /* spy branch */ } }