[LLVMbugs] [Bug 6612] New: UNREACHABLE executed! in X86 DAG->DAG isel
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Mar 14 00:28:44 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6612
Summary: UNREACHABLE executed! in X86 DAG->DAG isel
Product: new-bugs
Version: 2.6
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eschew at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4513)
--> (http://llvm.org/bugs/attachment.cgi?id=4513)
Minimal testcase for X86 DAG->DAG isel crash
This crashes llc:
%Counter = type { %tuple1 (i8*)*, i8* }
%tuple1 = type { i32, %Counter }
define %tuple1 @foo() nounwind readonly {
entry:
ret %tuple1 undef
}
I tested with version 2.6 installed via macports, and I also confirmed that the
same behavior happens on Ubuntu with the 2.6 Linux x86 binaries from the
Releases page.
Attached is the full minimal testcase.
Here's the full backtrace:
2010-03-14 04:22:08 ~/Code/fxc/ $ llc bad2.bc
UNREACHABLE executed!
0 llc 0x00a2ba78 std::_Rb_tree<llvm::sys::Path,
llvm::sys::Path, std::_Identity<llvm::sys::Path>, std::less<llvm::sys::Path>,
std::allocator<llvm::sys::Path> >::insert_unique(llvm::sys::Path const&) + 8696
1 llc 0x00a2c2b8 std::_Rb_tree<llvm::sys::Path,
llvm::sys::Path, std::_Identity<llvm::sys::Path>, std::less<llvm::sys::Path>,
std::allocator<llvm::sys::Path> >::insert_unique(llvm::sys::Path const&) +
10808
2 libSystem.B.dylib 0x9736f2bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1758006639
4 libSystem.B.dylib 0x973e323a raise + 26
5 libSystem.B.dylib 0x973ef679 abort + 73
6 llc 0x00a08a13
llvm::ConstantRange::ConstantRange(llvm::ConstantRange const&) + 10931
7 llc 0x00530463
llvm::RegisterTargetMachine<llvm::X86_64TargetMachine>::Allocator(llvm::Target
const&, std::string const&, std::string const&) + 1619
8 llc 0x004fa086 (anonymous
namespace)::X86FastISel::FastEmit_rr(llvm::MVT, llvm::MVT, llvm::ISD::NodeType,
unsigned int, unsigned int) + 1305974
9 llc 0x00685a8e llvm::APInt::getHighBitsSet(unsigned int,
unsigned int) + 273438
10 llc 0x00685ec3 llvm::APInt::getHighBitsSet(unsigned int,
unsigned int) + 274515
11 llc 0x00692b11
llvm::TargetLowering::getNumRegisters(llvm::LLVMContext&, llvm::EVT) const +
17345
12 llc 0x00693e91
llvm::TargetLowering::getNumRegisters(llvm::LLVMContext&, llvm::EVT) const +
22337
13 llc 0x006954b6
llvm::TargetLowering::getNumRegisters(llvm::LLVMContext&, llvm::EVT) const +
28006
14 llc 0x007580df std::vector<llvm::MachineJumpTableEntry,
std::allocator<llvm::MachineJumpTableEntry>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::MachineJumpTableEntry*,
std::vector<llvm::MachineJumpTableEntry,
std::allocator<llvm::MachineJumpTableEntry> > >, llvm::MachineJumpTableEntry
const&) + 1631
15 llc 0x0099cda5 llvm::FunctionPass::~FunctionPass() + 34821
16 llc 0x0099d080 llvm::FunctionPass::~FunctionPass() + 35552
17 llc 0x0099d298 llvm::FunctionPass::~FunctionPass() + 36088
18 llc 0x00003ef9 _mh_execute_header + 12025
19 llc 0x00001c36 _mh_execute_header + 3126
20 llc 0x00000002 _mh_execute_header + 18446744073709547522
Stack dump:
0. Program arguments: llc bad2.bc
1. Running pass 'X86 DAG->DAG Instruction Selection' on function '@foo'
Abort trap
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list