<html>
    <head>
      <base href="https://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 --- - crash: Assertion failed: (MemOffsetOp.isImm() && "expected immediate operand kind"), function expandBranchImm,"
   href="https://llvm.org/bugs/show_bug.cgi?id=25730">25730</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>crash:  Assertion failed: (MemOffsetOp.isImm() && "expected immediate operand kind"), function expandBranchImm,
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sbruno@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15393" name="attach_15393" title="Diagnostic files from the crash report.">attachment 15393</a> <a href="attachment.cgi?id=15393&action=edit" title="Diagnostic files from the crash report.">[details]</a></span>
Diagnostic files from the crash report.

Making good progress on moving the FreeBSD build system to using LLVM/Clang for
our MIPS64 targets.  We've made it much further and now hit an Assertion:
===> lib/libstand (all)
/home/sbruno/clang/build/bin/clang -D__mips_n64 -target
mips64-unknown-freebsd11.0
--sysroot=/var/tmp/mips.mips64/usr/home/sbruno/fbsd_head/tmp
-B/var/tmp/mips.mips64/usr/home/sbruno/fbsd_head/tmp/usr/bin -O -pipe -G0  
-I/usr/home/sbruno/fbsd_head/lib/libstand -DBZ_NO_STDIO -DBZ_NO_COMPRESS
-DHAVE_MEMCPY -I/usr/home/sbruno/fbsd_head/lib/libstand/../libz -ffreestanding
-Wformat  -msoft-float -D_STANDALONE -G0 -fno-pic -mno-abicalls -std=gnu99
-Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int
-Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value
-Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion
-Wno-unused-local-typedef -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments  -c
/usr/home/sbruno/fbsd_head/lib/libstand/mips/_setjmp.S -o _setjmp.o
Assertion failed: (MemOffsetOp.isImm() && "expected immediate operand kind"),
function expandBranchImm, file
/home/sbruno/clang/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp, line 2526.
clang-3.8: error: unable to execute command: Abort trap (core dumped)
clang-3.8: error: clang integrated assembler command failed due to signal (use
-v to see invocation)
clang version 3.8.0 (trunk 254519)
Target: mips64-unknown-freebsd11.0
Thread model: posix
InstalledDir: /home/sbruno/clang/build/bin
clang-3.8: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.8: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.8: note: diagnostic msg: /tmp/_setjmp-3b3e2a.S
clang-3.8: note: diagnostic msg: /tmp/_setjmp-3b3e2a.sh
clang-3.8: note: diagnostic msg: 

********************
*** Error code 254</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>