[llvm-bugs] [Bug 34888] New: PowerPC64: Code hits assert in MachineOperand.h:280 - This is not a register operand!

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 9 10:51:54 PDT 2017


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

            Bug ID: 34888
           Summary: PowerPC64: Code hits assert in MachineOperand.h:280 -
                    This is not a register operand!
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: anton at samba.org
                CC: echristo at gmail.com, hfinkel at anl.gov,
                    kit.barton at gmail.com, llvm-bugs at lists.llvm.org,
                    nemanja.i.ibm at gmail.com

Created attachment 19255
  --> https://bugs.llvm.org/attachment.cgi?id=19255&action=edit
Test case

The attached test case hits an assert when building the Linux kernel on
ppc64le. A cut down test case:

# llc llvm-fail.ll

llc: /home/anton/llvm/include/llvm/CodeGen/MachineOperand.h:280: unsigned int
llvm::MachineOperand::getReg() const: Assertion `isReg() && "This is not a
register operand!"' failed.
LLVMSymbolizer: error reading file: No such file or directory
#0 0x000000010e211b8c (llc+0x2611b8c)
#1 0x000000010e211c94 (llc+0x2611c94)
#2 0x000000010e20f614 (llc+0x260f614)
#3 0x000000010e210fb0 (llc+0x2610fb0)
#4 0x00007fffaf6004d8  0x4d8 __libc_signal_restore_set
#5 0x00007fffaf6004d8
/build/glibc-I4GUKU/glibc-2.24/signal/../sysdeps/unix/sysv/linux/nptl-signals.h:79:0
gsignal
#6 0x00007fffaf6004d8
/build/glibc-I4GUKU/glibc-2.24/signal/../sysdeps/unix/sysv/linux/raise.c:55:0 
#7 0x00007fffaf6004d8 abort /build/glibc-I4GUKU/glibc-2.24/stdlib/abort.c:89:0
#8 0x00007fffaf04e3c0 __assert_fail_base
/build/glibc-I4GUKU/glibc-2.24/assert/assert.c:92:0
#9 0x0000000000000001
#10 0x00007fffaf0507ec __assert_fail
/build/glibc-I4GUKU/glibc-2.24/assert/assert.c:101:0
#11 0x00007fffaf043950 (/lib/powerpc64le-linux-gnu/libc.so.6+0x33950)
#12 0x00007fffaf043a44 (/lib/powerpc64le-linux-gnu/libc.so.6+0x33a44)
#13 0x000000010c5d6558 (llc+0x9d6558)
#14 0x000000010c7a259c (llc+0xba259c)
#15 0x000000010c7a3c70 (llc+0xba3c70)
#16 0x000000010c7a1938 (llc+0xba1938)
#17 0x000000010cfc0508 (llc+0x13c0508)
#18 0x000000010d729188 (llc+0x1b29188)
#19 0x000000010d7293d8 (llc+0x1b293d8)
#20 0x000000010d729950 (llc+0x1b29950)
#21 0x000000010d72a2cc (llc+0x1b2a2cc)
#22 0x000000010d72a650 (llc+0x1b2a650)
#23 0x000000010c580b70 generic_start_main
/build/glibc-I4GUKU/glibc-2.24/csu/../csu/libc-start.c:291:0
#24 0x000000010c57ef20 __libc_start_main
/build/glibc-I4GUKU/glibc-2.24/csu/../sysdeps/unix/sysv/linux/powerpc/libc-start.c:116:0
llc(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x5c)[0x10e211b8c]
llc(+0x2611c94)[0x10e211c94]
llc(_ZN4llvm3sys17RunSignalHandlersEv+0xe4)[0x10e20f614]
llc(+0x2610fb0)[0x10e210fb0]
[0x7fffaf6004d8]
/lib/powerpc64le-linux-gnu/libc.so.6(gsignal+0xd0)[0x7fffaf04e3c0]
[0x1]
/lib/powerpc64le-linux-gnu/libc.so.6(abort+0x1ac)[0x7fffaf0507ec]
/lib/powerpc64le-linux-gnu/libc.so.6(+0x33950)[0x7fffaf043950]
/lib/powerpc64le-linux-gnu/libc.so.6(__assert_fail+0x64)[0x7fffaf043a44]
llc(+0x9d6558)[0x10c5d6558]
llc(+0xba259c)[0x10c7a259c]
llc(+0xba3c70)[0x10c7a3c70]
llc(+0xba1938)[0x10c7a1938]
llc(_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE+0x258)[0x10cfc0508]
llc(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x1c4)[0x10d729188]
llc(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0xac)[0x10d7293d8]
llc(+0x1b29950)[0x10d729950]
llc(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x184)[0x10d72a2cc]
llc(_ZN4llvm6legacy11PassManager3runERNS_6ModuleE+0x38)[0x10d72a650]
llc(+0x980b70)[0x10c580b70]
llc(main+0x5cc)[0x10c57ef20]
/lib/powerpc64le-linux-gnu/libc.so.6(+0x2291c)[0x7fffaf03291c]
/lib/powerpc64le-linux-gnu/libc.so.6(__libc_start_main+0xb8)[0x7fffaf032b18]
Stack dump:
0.      Program arguments: llc bugpoint-reduced-simplified.ll 
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2.      Running pass 'PowerPC MI Peephole Optimization' on function
'@__alloc_pages_nodemask'
Aborted (core dumped)

-- 
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/20171009/360f81d1/attachment-0001.html>


More information about the llvm-bugs mailing list