<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 --- - [SPARC64] clang 3.6 error: unknown directive ".xword""
   href="http://llvm.org/bugs/show_bug.cgi?id=22695">22695</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[SPARC64] clang 3.6 error: unknown directive ".xword"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Backend: Sparc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>markus@oberhumer.com
          </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>It seems there are still some issues with the sparc integrated as:

$ cat test.c

static const long table[] = { 2, 3, 5, 7 };

long foo(int a) { return table[a]; }

// EOF


$ clang-3.6.0rc4 -target sparc64-linux-gnu -Wall -W -O2 -save-temps -c test.c
[... driver warnings about floating point, see <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang 3.6: sparc-linux floating point options do not work"
   href="show_bug.cgi?id=22489">bug 22489</a> ...]
test.s:24:2: error: unknown directive
        .xword  2                       ! 0x2
        ^
test.s:25:2: error: unknown directive
        .xword  3                       ! 0x3
        ^
test.s:26:2: error: unknown directive
        .xword  5                       ! 0x5
        ^
test.s:27:2: error: unknown directive
        .xword  7                       ! 0x7
        ^


Interestingly it works when *NOT* using -save-temps (which makes me wonder
what -save-temps actually does):

$ clang-3.6.0rc4 -target sparc64-linux-gnu -Wall -W -O2 -c test.c
clang: warning: unknown platform, assuming -mfloat-abi=soft
'+soft-float' is not a recognized feature for this target (ignoring feature)
'+soft-float' is not a recognized feature for this target (ignoring feature)</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>