<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jan.vesely@rutgers.edu" title="Jan Vesely <jan.vesely@rutgers.edu>"> <span class="fn">Jan Vesely</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [oland, clover, llvm5] While-If Problem with Booleans"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109617">bug 109617</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Blocks</td>
           <td>
                
           </td>
           <td>99553
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>Gallium OpenCL: While-If Problem with Booleans
           </td>
           <td>[oland, clover, llvm5] While-If Problem with Booleans
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [oland, clover, llvm5] While-If Problem with Booleans"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109617#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [oland, clover, llvm5] While-If Problem with Booleans"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109617">bug 109617</a>
              from <span class="vcard"><a class="email" href="mailto:jan.vesely@rutgers.edu" title="Jan Vesely <jan.vesely@rutgers.edu>"> <span class="fn">Jan Vesely</span></a>
</span></b>
        <pre>please don't use text upload sites. either post in a comment or add as an
attachment.

kernel code:

#ifndef TEST_KERNEL_CL
#define TEST_KERNEL_CL

__kernel void
test_kernel_1(__global float4 *result)
{
    bool flag = false;
    //uint flag = false;
    uint gid = get_global_id(0);
    float rnd;
    uint i = 0;

#define VARIANT 1
#if (VARIANT == 1)
    while ((i < 2) && (flag == false)){
        rnd = sin((float)(gid + i)) + 0.1;

        if ((rnd * rnd)<=0.5){flag=true;}
        i++;
    }
#elif (VARIANT == 2)
    for (i = 0; i < 2; i++){
        if (flag == false){
        rnd = sin((float)(gid + i)) + 0.1;

        if ((rnd * rnd)<=0.5){flag=true; i++; break;}
        }
    }
#endif

    if(flag){    
        result[gid].x = rnd;
    }

    result[gid].y = (float)i;
}

#endif</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tracker bug for runnning OpenCL applications on Clover"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99553">Bug 99553</a>] Tracker bug for runnning OpenCL applications on Clover
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>