[LLVMbugs] [Bug 12203] New: Assertion fail in PPC frame pointer elimination
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 7 03:37:21 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12203
Bug #: 12203
Summary: Assertion fail in PPC frame pointer elimination
Product: libraries
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: PowerPC
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ggreif at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8149
--> http://llvm.org/bugs/attachment.cgi?id=8149
Compressed bitcode file. Sorry, but do not know how to reduce it.
With the attached .bc file I get:
$ bin/llc pSh_ReadDb.bc
llc: PPCRegisterInfo.cpp:674: virtual void
llvm::PPCRegisterInfo::eliminateFrameIndex(llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >, int, llvm::RegScavenger*) const:
Assertion `ImmToIdxMap.count(OpC) && "No indexed form of load or store
available!"' failed.
0 libLLVM-3.1svn.so 0x00002b5cc676f93f
1 libLLVM-3.1svn.so 0x00002b5cc6771ba2
2 libpthread.so.0 0x000000375a80eb70
3 libc.so.6 0x0000003759c30265 gsignal + 53
4 libc.so.6 0x0000003759c31d10 abort + 272
5 libc.so.6 0x0000003759c296e6 __assert_fail + 246
6 libLLVM-3.1svn.so 0x00002b5cc64cc9ef
llvm::PPCRegisterInfo::eliminateFrameIndex(llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >, int, llvm::RegScavenger*) const +
1647
7 libLLVM-3.1svn.so 0x00002b5cc61207d7
llvm::PEI::replaceFrameIndices(llvm::MachineFunction&) + 1127
8 libLLVM-3.1svn.so 0x00002b5cc6123e81
llvm::PEI::runOnMachineFunction(llvm::MachineFunction&) + 273
9 libLLVM-3.1svn.so 0x00002b5cc62b1bcb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 587
10 libLLVM-3.1svn.so 0x00002b5cc62b1cb3
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
11 libLLVM-3.1svn.so 0x00002b5cc62b2601
llvm::MPPassManager::runOnModule(llvm::Module&) + 497
12 libLLVM-3.1svn.so 0x00002b5cc62b29ab
llvm::PassManagerImpl::run(llvm::Module&) + 187
13 llc 0x0000000000408eea main + 5034
14 libc.so.6 0x0000003759c1d994 __libc_start_main + 244
15 llc 0x0000000000404ac9
llvm::cl::generic_parser_base::printOptionInfo(llvm::cl::Option const&,
unsigned long) const + 1129
Stack dump:
0. Program arguments:
/view/ggreif-tmp-nb-DREAM/phys/mfs/hc_rap/tools/bin/llc pSh_ReadDb.bc
1. Running pass 'Function Pass Manager' on module 'pSh_ReadDb.bc'.
2. Running pass 'Prolog/Epilog Insertion & Frame Finalization' on function
'@_Z21fw_initPshellCommandsv'
Aborted
My toolset was configured for PowerPC only from trunk but it is a few weeks
old.
The original clang invocation was (roughly) like this:
bin/clang++ -c -g -O2 -pipe -Wall -pthread -D_XOPEN_SOURCE=500 -D_SVID_SOURCE
-D_BSD_SOURCE -D__TARGET_ENV__ -DTGT_PPC -DXGS -DSONET_APS -include
/phys/mfs/hc_clic/include/nemo/config-linux-ppc-85xx.h -include
/phys/mfs/hc_clic/include/nemo/unixcompat.h -DSIM=1 -D_DTF_ -Wno-unused
-Wno-error -DOS_LINUX -Wno-error
-I/phys/mfs/G5fw/PROJECT/SEGM/G5fw/G5fwProcSkel/ProcSkel
"-DMACHINE_FILE=<BasicS/lin_ix86-gnu.h>" -Dsim_for_linux -Dsim_for_ppc
-Dsim_for_pq2 -DCOMPILER_VERSION="\"Gnu v3.4.3\"" -DDEBUG -DTRACEON -DGBOS
-DNOSCCSID -Dwant_traceid_G5fw -DFRAMEWORK -DSEGMENT=\"G5fw\"
-DSUBSYSTEM=\"G5fwProcSkel\" -DCOMPONENT=\"ProcSkel\" pSh_ReadDb.cc -o
pSh_ReadDb.o
Note: I also tried to invoke it with "-g" removed and then the compilation
succeeded.
--
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