<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:emaste@freebsd.org" title="emaste@freebsd.org">emaste@freebsd.org</a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion failed: (isExpr() && "This is not an expression"), building FreeBSD/mips64 OCTEON1 kernel"
href="https://bugs.llvm.org/show_bug.cgi?id=34391">bug 34391</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;">Status</td>
<td>CONFIRMED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion failed: (isExpr() && "This is not an expression"), building FreeBSD/mips64 OCTEON1 kernel"
href="https://bugs.llvm.org/show_bug.cgi?id=34391#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion failed: (isExpr() && "This is not an expression"), building FreeBSD/mips64 OCTEON1 kernel"
href="https://bugs.llvm.org/show_bug.cgi?id=34391">bug 34391</a>
from <span class="vcard"><a class="email" href="mailto:emaste@freebsd.org" title="emaste@freebsd.org">emaste@freebsd.org</a>
</span></b>
<pre>(In reply to Simon Atanasyan from <a href="show_bug.cgi?id=34391#c4">comment #4</a>)
<span class="quote">> It still impossible to compile the code. The following commands use reduced
> test case and fail on assertion:
>
> $ cat test.s
> sc $12, octeon_ap_boot
>
> $ clang -target mips64 -c test.S
> ...
> clang-9: llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp:3608: void
> (anonymous namespace)::MipsAsmParser::expandMemInst(llvm::MCInst &,
> llvm::SMLoc, llvm::MCStreamer &, const llvm::MCSubtargetInfo *, bool):
> Assertion `OffsetOp.isExpr() && "expected expression operand kind"' failed.</span >
Attempting to reproduce using system clang on FreeBSD 13 did not reproduce the
failure:
$ clang --version
FreeBSD clang version 11.0.0 (<a href="mailto:git@github.com">git@github.com</a>:llvm/llvm-project.git
llvmorg-11.0.0-rc2-0-g414f32a9e86)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
$ clang -target mips64 -g -c test.s
$ llvm-objdump -S test.o
test.o: file format elf64-mips
Disassembly of section .text:
0000000000000000 <.text>:
; sc $12, octeon_ap_boot
0: df 81 00 00 ld $1, 0($gp)
4: e0 2c 00 00 sc $12, 0($1)</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>