sms-antideps.c

来自「用于进行gcc测试」· C语言 代码 · 共 39 行

C
39
字号
/*  This test is a reduced test case for a bug that caused    bootstrapping with -fmodulo-sched.  Related to a broken anti-dep    that was not fixed by reg-moves.  */ /* { dg-do run } */ /* { dg-options "-O2 -fmodulo-sched -fmodulo-sched-allow-regmoves" } */#include <stdlib.h>unsigned long longfoo (long long ixi, unsigned ctr){  unsigned long long irslt = 1;  long long ix = ixi;  for (; ctr; ctr--)    {      irslt *= ix;      ix *= ix;    }  if (irslt != 14348907)    abort ();  return irslt;}intmain (){  unsigned long long res;  res = foo (3, 4);  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?