[llvm-bugs] [Bug 27638] New: ICE in llvm::SDValue llvm::X86TargetLowering::LowerSETCC
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 4 01:29:15 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27638
Bug ID: 27638
Summary: ICE in llvm::SDValue
llvm::X86TargetLowering::LowerSETCC
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: Vsevolod.Livinskij at frtk.ru
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 16310
--> https://llvm.org/bugs/attachment.cgi?id=16310&action=edit
Reproducer.
Testcase:
int a;
short b;
bool c;
void fn1() {
if (b);
else
c = a >= b;
}
ICE:
> clang++ -O2 -march=knl repr.cpp -S
clang-3.9:
/export/users/vlivinsk/llvm/llvm-trunk/lib/Target/X86/X86ISelLowering.cpp:15321:
llvm::SDValue llvm::X86TargetLowering::LowerSETCC(llvm::SDValue,
llvm::SelectionDAG&) const: Assertion `((!Subtarget.hasAVX512() && VT ==
MVT::i8) || (VT == MVT::i1)) && "SetCC type must be 8-bit or 1-bit integer"'
failed.
#0 0x00000000012675e5 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x12675e5)
#1 0x0000000001264f56 llvm::sys::RunSignalHandlers()
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x1264f56)
#2 0x000000000126516a SignalHandler(int)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x126516a)
#3 0x00007fc67b24a9f0 __restore_rt (/lib64/libpthread.so.0+0x109f0)
#4 0x00007fc67a3fca98 __GI_raise (/lib64/libc.so.6+0x34a98)
#5 0x00007fc67a3fe69a __GI_abort (/lib64/libc.so.6+0x3669a)
#6 0x00007fc67a3f5227 __assert_fail_base (/lib64/libc.so.6+0x2d227)
#7 0x00007fc67a3f52d2 (/lib64/libc.so.6+0x2d2d2)
#8 0x00000000009b41cc llvm::X86TargetLowering::LowerSETCC(llvm::SDValue,
llvm::SelectionDAG&) const
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x9b41cc)
#9 0x00000000009cef00 llvm::X86TargetLowering::LowerOperation(llvm::SDValue,
llvm::SelectionDAG&) const
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x9cef00)
#10 0x000000000182c12f (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x182c12f)
#11 0x00000000018339b3 llvm::SelectionDAG::LegalizeOp(llvm::SDNode*,
llvm::SmallSetVector<llvm::SDNode*, 16u>&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x18339b3)
#12 0x00000000017ef959 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults&, llvm::CodeGenOpt::Level)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x17ef959)
#13 0x00000000018be95f llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x18be95f)
#14 0x00000000018c83d2
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x18c83d2)
#15 0x00000000018ca880
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x18ca880)
#16 0x0000000000901d14 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x901d14)
#17 0x0000000000c387e5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0xc387e5)
#18 0x0000000000eddc33 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0xeddc33)
#19 0x0000000000ede03b llvm::FPPassManager::runOnModule(llvm::Module&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0xede03b)
#20 0x0000000000edd77d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0xedd77d)
#21 0x00000000013aa433 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x13aa433)
#22 0x0000000001999efd
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x1999efd)
#23 0x0000000001ca1fea clang::ParseAST(clang::Sema&, bool, bool)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x1ca1fea)
#24 0x000000000199a497 clang::CodeGenAction::ExecuteAction()
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x199a497)
#25 0x00000000016a2d86 clang::FrontendAction::Execute()
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x16a2d86)
#26 0x0000000001679ed6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x1679ed6)
#27 0x00000000017259c7
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x17259c7)
#28 0x000000000082efd0 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x82efd0)
#29 0x00000000007fe5c0 main
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x7fe5c0)
#30 0x00007fc67a3e8580 __libc_start_main (/lib64/libc.so.6+0x20580)
#31 0x000000000082ba49 _start
(/export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9+0x82ba49)
Stack dump:
0. Program arguments: /export/users/vlivinsk/llvm/bin-trunk/bin/clang-3.9
-cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name repr.cpp
-mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu knl
-momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb
-coverage-file
/export/users/vlivinsk/dpd_tpi_randloop-randloop/found/clang/crash/S_1005793326/reduce/repr.cpp
-resource-dir /export/users/vlivinsk/llvm/bin-trunk/bin/../lib/clang/3.9.0
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../include/c++/5.3.1
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../include/c++/5.3.1/x86_64-redhat-linux
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../include/c++/5.3.1/backward
-internal-isystem /usr/local/include -internal-isystem
/export/users/vlivinsk/llvm/bin-trunk/bin/../lib/clang/3.9.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdeprecated-macro -fdebug-compilation-dir
/export/users/vlivinsk/dpd_tpi_randloop-randloop/found/clang/crash/S_1005793326/reduce
-ferror-limit 19 -fmessage-length 125 -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -o repr.s -x c++ repr.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'repr.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_Z3fn1v'
clang-3.9: error: unable to execute command: Aborted (core dumped)
clang-3.9: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (trunk 268477)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Clang version:
> clang++ -v
clang version 3.9.0 (trunk 268477)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /export/users/vlivinsk/llvm/bin-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-redhat-linux/5.3.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/5.3.1
Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/5.3.1
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
--
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/20160504/ac546537/attachment.html>
More information about the llvm-bugs
mailing list