<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 failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file /Users/eschnett/src/llvm-trunk/include/llvm/Support/Casting.h, line 231"
   href="http://llvm.org/bugs/show_bug.cgi?id=15553">15553</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file /Users/eschnett/src/llvm-trunk/include/llvm/Support/Casting.h, line 231
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>schnetter@gmail.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=10206" name="attach_10206" title="maxmag-BiDJUF.cl">attachment 10206</a> <a href="attachment.cgi?id=10206&action=edit" title="maxmag-BiDJUF.cl">[details]</a></span>
maxmag-BiDJUF.cl

/Users/eschnett/llvm-trunk/bin/clang -emit-llvm -c -target
x86_64-apple-darwin12.3.0 -o maxmag.bc -x cl ../vecmathlib/pocl/maxmag.cl
-include ../../../include/x86_64/types.h \
        -include /Users/eschnett/src/pocl/include/_kernel.h
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file
/Users/eschnett/src/llvm-trunk/include/llvm/Support/Casting.h, line 231.
0  libLLVM-3.3svn.dylib 0x00000001113d8b18 llvm::sys::PrintStackTrace(__sFILE*)
+ 40
1  libLLVM-3.3svn.dylib 0x00000001113d9074 SignalHandler(int) + 564
2  libsystem_c.dylib    0x00007fff8ce9894a _sigtramp + 26
3  libLLVM-3.3svn.dylib 0x0000000110ad1f24 ThreadBinOpOverSelect(unsigned int,
llvm::Value*, llvm::Value*, Query const&, unsigned int) + 180
4  libLLVM-3.3svn.dylib 0x00000001113d8e26 abort + 22
5  libLLVM-3.3svn.dylib 0x00000001113d8e01 __assert_rtn + 81
6  libLLVM-3.3svn.dylib 0x0000000110e67162 llvm::Type::getVectorNumElements()
const + 82
7  libLLVM-3.3svn.dylib 0x0000000110f34e8a
llvm::InstCombiner::FoldSelectOpOp(llvm::SelectInst&, llvm::Instruction*,
llvm::Instruction*) + 154
8  libLLVM-3.3svn.dylib 0x0000000110f36e73
llvm::InstCombiner::visitSelectInst(llvm::SelectInst&) + 2243
9  libLLVM-3.3svn.dylib 0x0000000110f5523b
llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) + 5179
10 libLLVM-3.3svn.dylib 0x0000000110f55aa0
llvm::InstCombiner::runOnFunction(llvm::Function&) + 384
11 libLLVM-3.3svn.dylib 0x0000000110e5c63b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 347
12 libLLVM-3.3svn.dylib 0x0000000110e5c8db
llvm::FPPassManager::runOnModule(llvm::Module&) + 59
13 libLLVM-3.3svn.dylib 0x0000000110e5cc85
llvm::MPPassManager::runOnModule(llvm::Module&) + 517
14 libLLVM-3.3svn.dylib 0x0000000110e5d32c
llvm::PassManagerImpl::run(llvm::Module&) + 556
15 libLLVM-3.3svn.dylib 0x0000000110e5d51d
llvm::PassManager::run(llvm::Module&) + 13
16 clang                0x000000010fafec5a llvm::raw_ostream&
llvm::WriteGraph<clang::serialization::ModuleManager>(llvm::raw_ostream&,
clang::serialization::ModuleManager const&, bool, llvm::Twine const&) + 12522
17 clang                0x000000010fbf47b5
llvm::SmallVectorTemplateBase<llvm::DenseMap<clang::BaseSubobject, unsigned
long long, llvm::DenseMapInfo<clang::BaseSubobject> >, false>::grow(unsigned
long) + 32117
18 clang                0x000000010fc37304
clang::CanQual<clang::FunctionNoProtoType>::CreateUnsafe(clang::QualType) +
101556
19 clang                0x000000010fbf33fa
llvm::SmallVectorTemplateBase<llvm::DenseMap<clang::BaseSubobject, unsigned
long long, llvm::DenseMapInfo<clang::BaseSubobject> >, false>::grow(unsigned
long) + 27066
20 clang                0x000000010f9c22c6
std::__1::__tree<std::__1::pair<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit>,
std::__1::__map_value_compare<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit, std::__1::less<clang::edit::FileOffset>,
true>, std::__1::allocator<std::__1::pair<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit> >
<span class="quote">>::destroy(std::__1::__tree_node<std::__1::pair<clang::edit::FileOffset,</span >
clang::edit::EditedSource::FileEdit>, void*>*) + 5926
21 clang                0x000000010f99e3bd
llvm::SmallVectorTemplateBase<llvm::sys::Path, false>::grow(unsigned long) +
37901
22 clang                0x000000010f9641b2 void
std::__1::__tree_balance_after_insert<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*,
std::__1::__tree_node_base<void*>*) + 4930
23 clang                0x000000010f95ae02
24 clang                0x000000010f9616aa
std::__1::__deque_base<llvm::Region*, std::__1::allocator<llvm::Region*>
<span class="quote">>::clear() + 24906</span >
25 libdyld.dylib        0x00007fff94e367e1 start + 0
Stack dump:
0.    Program arguments: /Users/eschnett/llvm-trunk/bin/clang -cc1 -triple
x86_64-apple-macosx10.8.0 -emit-llvm-bc -disable-free -main-file-name maxmag.cl
-mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 134.9 -coverage-file
/Users/eschnett/src/pocl/lib/kernel/x86_64/maxmag.bc -resource-dir
/Users/eschnett/llvm-trunk/bin/../lib/clang/3.3 -include
../../../include/x86_64/types.h -include
/Users/eschnett/src/pocl/include/_kernel.h -fdebug-compilation-dir
/Users/eschnett/src/pocl/lib/kernel/x86_64 -ferror-limit 19 -fmessage-length 80
-stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.8.0
-fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties
-fencode-extended-block-signature -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o maxmag.bc -x cl
../vecmathlib/pocl/maxmag.cl 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module
'../vecmathlib/pocl/maxmag.cl'.
4.    Running pass 'Combine redundant instructions' on function
'@_Z6maxmagDv2_fS_'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 177550)
Target: x86_64-apple-darwin12.3.0
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: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/maxmag-BiDJUF.cl
clang: note: diagnostic msg:
/var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/maxmag-BiDJUF.sh
clang: note: diagnostic msg: 

********************
make[4]: *** [maxmag.bc] Error 254</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>