<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Add support for '__builtin_ia32_sqrtps_nr256’"
   href="http://llvm.org/bugs/show_bug.cgi?id=16403">16403</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add support for '__builtin_ia32_sqrtps_nr256’
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>dragonegg
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>baldrick@free.fr
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>thomas.braun@virtuell-zuhause.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following code snippet
#########
#include <math.h>

float calc(float *x)
{
      float sum;
      for (int j = 0; j < 1024; j++)
      {
          const float drSquared = x[j] * x[j];
          sum += 1.0f / (drSquared * sqrtf(drSquared));
      }
      return sum; // ensure it is not optimized away
}
#########

saved as loop.c can not be compiled using

####
gcc-4.8 -lm -fplugin=/home/thomas/devel/dragonegg-3.3.src-gcc-4.8/dragonegg.so
-std=c99 -O3 -ffast-math -march=corei7-avx
-fplugin-arg-dragonegg-enable-gcc-optzns loop.c -S -o dragonegg-with-gcc-opts.s
####

because of

####
loop.c: In function ‘calc’:
loop.c:9:43: error: unsupported target builtin ‘__builtin_ia32_sqrtps_nr256’
use
####

Compiling with gcc 4.8, clang 3.3 or without the
-fplugin-arg-dragonegg-enable-gcc-optzns flag works.

Versions:
#####
gcc-4.8 (Debian 4.8.1-3) 4.8.1
dragonegg-3.3 compiled from source
clang --version
Debian clang version 3.3-1 (branches/release_33) (based on LLVM 3.3)
Target: x86_64-pc-linux-gnu
Thread model: posix
debian unstable
####

Thanks for reading
Thomas</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>