[llvm-bugs] [Bug 44506] New: [PowerPC] Assertion failed: ((N->getSimpleValueType(0) == MVT::i64 || N->getSimpleValueType(0) == MVT::i32) && "Expecting either i64 or i32 here."), function mayUseP9Setb

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 9 17:46:05 PST 2020


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

            Bug ID: 44506
           Summary: [PowerPC] Assertion failed: ((N->getSimpleValueType(0)
                    == MVT::i64 || N->getSimpleValueType(0) == MVT::i32)
                    && "Expecting either i64 or i32 here."), function
                    mayUseP9Setb
           Product: libraries
           Version: trunk
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: chmeeedalf at gmail.com
                CC: llvm-bugs at lists.llvm.org, nemanja.i.ibm at gmail.com

Hit the assertion in the summary when building the FreeBSD kernel targeting
power9.  Will attach the file and script.

Assertion failed: ((N->getSimpleValueType(0) == MVT::i64 ||
N->getSimpleValueType(0) == MVT::i32) && "Expecting either i64 or i32 here."),
function mayUseP9Setb, file
llvm-project/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp, line 4222.
Stack dump:                                                       
0.      Program arguments: /usr/bin/cc -cc1 -triple
powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name
vm_swapout.c -mrelocation-model pic -pic-level 2 -mthread-m
odel posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -ffreestanding
-fuse-init-array -target-cpu pwr9 -target-feature -altivec -target-feature
-hard-float -target-featur
e +secure-plt -msoft-float -mfloat-abi soft -target-abi elfv2
-dwarf-column-info -debug-info-kind=standalone -dwarf-version=2
-debugger-tuning=gdb -momit-leaf-frame-pointer -coverag
e-notes-file
/ralga/scratch/chmeee/builds/ralga/home/chmeee/freebsd-head/powerpc.powerpc64/sys/RALGA/vm_swapout.gcno
-nostdsysteminc -nobuiltininc -resource-dir /usr/lib/clang/9.0.1
 -dependency-file .depend.vm_swapout.o -sys-header-deps -MT vm_swapout.o
-include opt_global.h -I . -I /home/chmeee/freebsd-head/sys -I
/home/chmeee/freebsd-head/sys/contrib/ck/incl
ude -I /home/chmeee/freebsd-head/sys/contrib/libfdt -D _KERNEL -D
HAVE_KERNEL_OPTION_HEADERS -D __printf__=__freebsd_kprintf__ -isysroot
/ralga/scratch/chmeee/builds/ralga/home/chme
ee/freebsd-head/powerpc.powerpc64/tmp -O2 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wcast-qual -Wundef -Wno-pointer-sign -Wm
issing-include-dirs -Wno-unknown-pragmas -Wno-error-tautological-compare
-Wno-error-empty-body -Wno-error-parentheses-equality
-Wno-error-unused-function -Wno-error-pointer-sign -Wn
o-error-shift-negative-value -Wno-address-of-packed-member
-Wno-format-zero-length -Werror -std=iso9899:1999 -fdebug-compilation-dir
/ralga/scratch/chmeee/builds/ralga/home/chmeee/f
reebsd-head/powerpc.powerpc64/sys/RALGA
-fdebug-prefix-map=./machine=/home/chmeee/freebsd-head/sys/powerpc/include
-ferror-limit 19 -fmessage-length 0 -fwrapv -stack-protector 1 -fn
o-signed-char -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops
-vectorize-slp -faddrsig -o vm_swapout.o -x c
/home/chmeee/freebsd-head/sys/vm/vm_swapout.c          
1.      <eof> parser at end of file                             
2.Code generation
3.      Running pass 'Function Pass Manager' on module
'/home/chmeee/freebsd-head/sys/vm/vm_swapout.c'.
4.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@swapper'
#0 0x000000001370dfd8 PrintStackTrace
llvm-project/llvm/lib/Support/Unix/Signals.inc:533:13
#1 0x000000001370e654 llvm-project/llvm/lib/Support/Unix/Signals.inc:593:3
#2 0x000000001370b918 RunSignalHandlers
llvm-project/llvm/lib/Support/Signals.cpp:67:5
#3 0x000000001370edcc SignalHandler
llvm-project/llvm/lib/Support/Unix/Signals.inc:375:3
#4 0x00000008151f176c handle_signal
/freebsd-power9/lib/libthr/thread/thr_sig.c:248:3
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 9.0.1 (git at github.com:llvm/llvm-project.git
c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.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/20200110/acf06e25/attachment-0001.html>


More information about the llvm-bugs mailing list