<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: getNoopOrZeroExtend cannot truncate!"
   href="http://llvm.org/bugs/show_bug.cgi?id=18049">18049</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: getNoopOrZeroExtend cannot truncate!
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>M8R-9yw8a5@mailinator.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>1. Source code (x.c):

extern int big[];
void f(long long count)
{
    for(int i = 0; i < count; ++i)
        big[i] = ~big[i];
}

2. Command line:

clang -O2 -march=prescott -c x.c

3. Output:

Assertion failed: (getTypeSizeInBits(SrcTy) <= getTypeSizeInBits(Ty) &&
"getNoopOrZeroExtend cannot truncate!"), function getNoopOrZeroExtend, file
/path/to/llvm-src/lib/Analysis/ScalarEvolution.cpp, line 2845.
Stack dump:
0.    Program arguments: /path/to/llvm/bin/clang -cc1 -triple
i386-unknown-freebsd11.0 -emit-obj -disable-free -main-file-name x.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu prescott -target-linker-version 2.17.50 -coverage-file
/path/to/testcase/x.o -resource-dir /path/to/llvm/bin/../lib/clang/3.5 -O2
-Wall -fdebug-compilation-dir /path/to/testcase -ferror-limit 19
-fmessage-length 82 -mstackrealign -fobjc-runtime=gnustep
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o x.o -x c x.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module 'x.c'.
4.    Running pass 'Loop Pass Manager' on function '@f'
5.    Running pass 'Loop Vectorization' on basic block '%for.body'</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>