[LLVMbugs] [Bug 7001] New: MSP430 codegen: "Invalid truncate node" on a simple loop
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 30 20:02:04 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7001
Summary: MSP430 codegen: "Invalid truncate node" on a simple
loop
Product: new-bugs
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Keywords: compile-fail
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ransford at cs.umass.edu
CC: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu
Created an attachment (id=4786)
--> (http://llvm.org/bugs/attachment.cgi?id=4786)
simplified test case (generated as described in ticket)
% clang -v
clang version 2.0 (trunk 102826)
Target: x86_64-apple-darwin10
Thread model: posix
% cat gt.c
int main (void) {
int l = 10, x = 100, r = 1;
while (r < 10 && l <= x)
++r;
}
% clang -ccc-host-triple msp430-elf -emit-llvm -c -o gt.bc gt.c
% llc -march=msp430 gt.bc
Assertion failed:
(Operand.getValueType().getScalarType().bitsGT(VT.getScalarType()) && "Invalid
truncate node, src < dst!"), function getNode, file
/Users/ransford/vc/llvm-svn/lib/CodeGen/SelectionDAG/SelectionDAG.cpp, line
2474.
0 llc 0x00000001008b2cea PrintStackTrace(void*) + 38
1 llc 0x00000001008b31ca SignalHandler(int) + 312
2 libSystem.B.dylib 0x00007fff850c580a _sigtramp + 26
3 libSystem.B.dylib 0x00007fff8506a50a tiny_malloc_from_free_list + 1196
4 libSystem.B.dylib 0x00007fff85140ef0 __pthread_markcancel + 0
5 llc 0x000000010042af93 llvm::SelectionDAG::getNode(unsigned
int, llvm::DebugLoc, llvm::EVT, llvm::SDValue) + 7311
6 llc 0x00000001004a8d54
llvm::TargetLowering::SimplifySetCC(llvm::EVT, llvm::SDValue, llvm::SDValue,
llvm::ISD::CondCode, bool, llvm::TargetLowering::DAGCombinerInfo&,
llvm::DebugLoc) const + 8140
7 llc 0x00000001003521b5 (anonymous
namespace)::DAGCombiner::SimplifySetCC(llvm::EVT, llvm::SDValue, llvm::SDValue,
llvm::ISD::CondCode, llvm::DebugLoc, bool) + 187
8 llc 0x00000001003522a1 (anonymous
namespace)::DAGCombiner::visitSETCC(llvm::SDNode*) + 203
9 llc 0x00000001003816c1 (anonymous
namespace)::DAGCombiner::visit(llvm::SDNode*) + 1815
10 llc 0x0000000100381bdc (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*) + 44
11 llc 0x0000000100383b68 (anonymous
namespace)::DAGCombiner::Run(llvm::CombineLevel) + 498
12 llc 0x0000000100383f50
llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&,
llvm::CodeGenOpt::Level) + 54
13 llc 0x000000010048ba2e
llvm::SelectionDAGISel::CodeGenAndEmitDAG(llvm::MachineBasicBlock*) + 1612
14 llc 0x000000010048dae8
llvm::SelectionDAGISel::SelectBasicBlock(llvm::MachineBasicBlock*,
llvm::BasicBlock const*, llvm::ilist_iterator<llvm::Instruction const>,
llvm::ilist_iterator<llvm::Instruction const>, bool&) + 242
15 llc 0x000000010048e0fe
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1556
16 llc 0x000000010048e40b
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 671
17 llc 0x0000000100560f7b
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85
18 llc 0x000000010082fe8c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 348
19 llc 0x00000001008313fb
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 79
20 llc 0x00000001008315c2
llvm::FunctionPassManager::run(llvm::Function&) + 136
21 llc 0x000000010002edff main + 2913
22 llc 0x000000010002db0c start + 52
23 llc 0x0000000000000003 start + 4294780203
Stack dump:
0. Program arguments: llc -march=msp430 gt.bc
1. Running pass 'MSP430 DAG->DAG Pattern Instruction Selection' on function
'@main'
[1] 27390 abort llc -march=msp430 gt.bc
% bugpoint -run-llc gt.bc --tool-args -march=msp430
--
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