<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Assertion/Crash in LegalizeTypes with ARM vfpv3"
   href="http://llvm.org/bugs/show_bug.cgi?id=15611">15611</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion/Crash in LegalizeTypes with ARM vfpv3
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Common Code Generator Code
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>srhines@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10246" name="attach_10246" title="source file that demonstrates the crash">attachment 10246</a> <a href="attachment.cgi?id=10246&action=edit" title="source file that demonstrates the crash">[details]</a></span>
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 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
4919de6a53a007487c6d6b173921b5e7152a2004) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
b7656a9cc4bf36752df38e7c02b910c9390b9c39)
Target: armv7-none-linux-gnueabi
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>