<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Bad int(floatBitsToInt(vec4))"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89508#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Bad int(floatBitsToInt(vec4))"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89508">bug 89508</a>
              from <span class="vcard"><a class="email" href="mailto:itoral@igalia.com" title="Iago Toral <itoral@igalia.com>"> <span class="fn">Iago Toral</span></a>
</span></b>
        <pre>I found something interesting: the test expects addr0 to get values 0, 1, 2, 3,
then exit the loop in the 5th iteration, so I edited the code in the loop to
add this conditional for the assignment of temp[9]:

addr0 = int(floatBitsToInt(temps[10].xxxx));
if (addr0 >= 4)
   temps[9] = vec4(1.0, 0, 0, 0);
else
   temps[9] += temps[addr0];

Basically, I wanted to confirm that addr0 was being assigned a value that was
not expected (by forcing a red color as the output), but surprisingly, adding
this conditional makes the test pass!

Based on this, I think the problem here must be related with an optimization
pass that, for some reason, changes its behavior when the conditional is
present.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>