#include #include void move(long *from, long *to, long * incr, long count); int main() { int pc=prctl(PR_GET_SPECULATION_CTRL,PR_SPEC_STORE_BYPASS,0,0,0); printf("3 means speculative store bypass enabled: %x\n",pc); long mem[10000]; long i=0; for (i=0; i<10000; i++) mem[i]=1; for (i=0; i<1000000; i++) { move(mem,mem+1,mem+1,1000); } return 0; }