[llvm-bugs] [Bug 34391] Assertion failed: (isExpr() && "This is not an expression"), building FreeBSD/mips64 OCTEON1 kernel

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 4 12:25:57 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=34391

emaste at freebsd.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #5 from emaste at freebsd.org ---
(In reply to Simon Atanasyan from comment #4)
> 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.

Attempting to reproduce using system clang on FreeBSD 13 did not reproduce the
failure:

$ clang --version
FreeBSD clang version 11.0.0 (git at github.com: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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201104/932160db/attachment.html>


More information about the llvm-bugs mailing list