(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
20220525-1.c
       1  /* { dg-do compile } */
       2  /* { dg-additional-options "-funswitch-loops" } */
       3  
       4  int LIST_1, mb_pred_b_d4x4spatial_dec_picture_l0_rFrame,
       5      mb_pred_b_d4x4spatial_dec_picture_l1_rFrame;
       6  typedef struct {
       7      char ref_idx[2];
       8  } PicMotionParams;
       9  PicMotionParams mb_pred_b_d4x4spatial_dec_picture_mv_info;
      10  int get_colocated_info_4x4___trans_tmp_1, get_colocated_info_4x4_list1_0;
      11  int get_colocated_info_4x4()
      12  {
      13    int moving =
      14        get_colocated_info_4x4_list1_0 && get_colocated_info_4x4___trans_tmp_1;
      15    return moving;
      16  }
      17  void mb_pred_b_d4x4spatial_dec_picture()
      18  {
      19    char k;
      20    for (;;)
      21      {
      22        k = 0;
      23        for (; k < 4; k++)
      24          if (mb_pred_b_d4x4spatial_dec_picture_l0_rFrame
      25              || mb_pred_b_d4x4spatial_dec_picture_l1_rFrame == 0)
      26            {
      27              int is_not_moving = get_colocated_info_4x4();
      28              if (mb_pred_b_d4x4spatial_dec_picture_l1_rFrame)
      29                if (is_not_moving)
      30                  mb_pred_b_d4x4spatial_dec_picture_mv_info.ref_idx[LIST_1] = 1;
      31            }
      32      }
      33  }