[LLVMbugs] [Bug 15611] New: Assertion/Crash in LegalizeTypes with ARM vfpv3

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 27 10:52:02 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15611

            Bug ID: 15611
           Summary: Assertion/Crash in LegalizeTypes with ARM vfpv3
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: srhines at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10246
  --> http://llvm.org/bugs/attachment.cgi?id=10246&action=edit
source file that demonstrates the crash

Using either "-mfpu=vfpv3" or "-march=cortex-a8" will trigger the bug. Removing
either option (and just using standard the armv7 target) will allow it to
successfully complete.

clang++ -S -O1 -target armv7-none-linux-gnueabi -mfpu=vfpv3
rsCpuIntrinsic3DLUT.ii

clang: /a/llvm/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:836: void
llvm::DAGTypeLegalizer::SetSplitVector(llvm::SDValue, llvm::SDValue,
llvm::SDValue): Assertion `Lo.getValueType().getVectorElementType() ==
Op.getValueType().getVectorElementType() &&
2*Lo.getValueType().getVectorNumElements() ==
Op.getValueType().getVectorNumElements() && Hi.getValueType() ==
Lo.getValueType() && "Invalid type for split vector"' failed.
0  clang           0x0000000001ca5b95 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  clang           0x0000000001ca6083
2  libpthread.so.0 0x00007fcd2f9c1cb0
3  libc.so.6       0x00007fcd2ea0b425 gsignal + 53
4  libc.so.6       0x00007fcd2ea0eb8b abort + 379
5  libc.so.6       0x00007fcd2ea040ee
6  libc.so.6       0x00007fcd2ea04192
7  clang           0x000000000167cf50
8  clang           0x000000000168b359
9  clang           0x000000000167a233
10 clang           0x000000000167f525 llvm::SelectionDAG::LegalizeTypes() + 37
11 clang           0x00000000016352a8
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 1320
12 clang           0x0000000001634537
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 6263
13 clang           0x0000000001632006
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1286
14 clang           0x000000000177981d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 125
15 clang           0x0000000001c457ac
llvm::FPPassManager::runOnFunction(llvm::Function&) + 364
16 clang           0x0000000001c45a1b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
17 clang           0x0000000001c45d6e
llvm::MPPassManager::runOnModule(llvm::Module&) + 430
18 clang           0x0000000001c4640b llvm::PassManagerImpl::run(llvm::Module&)
+ 539
19 clang           0x0000000001c4657a llvm::PassManager::run(llvm::Module&) +
10
20 clang           0x00000000007bc9d7
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5815
21 clang           0x00000000007ba00b
22 clang           0x00000000008fd3c3 clang::ParseAST(clang::Sema&, bool, bool)
+ 515
23 clang           0x00000000007b9082 clang::CodeGenAction::ExecuteAction() +
194
24 clang           0x000000000064b831 clang::FrontendAction::Execute() + 113
25 clang           0x000000000062c7dd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 909
26 clang           0x00000000006143e7
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2983
27 clang           0x000000000060b758 cc1_main(char const**, char const**, char
const*, void*) + 648
28 clang           0x000000000061169b main + 7147
29 libc.so.6       0x00007fcd2e9f676d __libc_start_main + 237
30 clang           0x000000000060b415
Stack dump:
0.      Program arguments: /a/llvm/llvm-bin/bin/clang -cc1 -triple
armv7-none-linux-gnueabi -S -disable-free -main-file-name
rsCpuIntrinsic3DLUT.ii -mrelocation-model static -mdisable-fp-elim -fmath-errno
-mconstructor-aliases -target-abi aapcs-linux -target-cpu cortex-a8 -mfloat-abi
soft -target-feature +soft-float-abi -target-feature +vfp3 -target-feature
-neon -target-linker-version 2.22 -momit-leaf-frame-pointer -coverage-file
/usr/local/google/home/srhines/temp/rsCpuIntrinsic3DLUT.s -resource-dir
/a/llvm/llvm-bin/bin/../lib/clang/3.3 -O1 -fdeprecated-macro
-fno-dwarf-directory-asm -fdebug-compilation-dir
/usr/local/google/home/srhines/temp -ferror-limit 19 -fmessage-length 90
-mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o rsCpuIntrinsic3DLUT.s -x c++-cpp-output rsCpuIntrinsic3DLUT.ii
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'rsCpuIntrinsic3DLUT.ii'.
4.      Running pass 'ARM Instruction Selection' on function
'@_ZN7android12renderscript26RsdCpuScriptIntrinsic3DLUT6kernelEPKNS0_24RsForEachStubParamStructEjjjj'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (http://llvm.org/git/clang.git
4919de6a53a007487c6d6b173921b5e7152a2004) (http://llvm.org/git/llvm.git
b7656a9cc4bf36752df38e7c02b910c9390b9c39)
Target: armv7-none-linux-gnueabi
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

-- 
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/20130327/89fb8e79/attachment.html>


More information about the llvm-bugs mailing list