[LLVMbugs] [Bug 18049] New: Assertion failed: getNoopOrZeroExtend cannot truncate!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 24 14:22:18 PST 2013


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

            Bug ID: 18049
           Summary: Assertion failed: getNoopOrZeroExtend cannot truncate!
           Product: clang
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: M8R-9yw8a5 at mailinator.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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'

-- 
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/20131124/42b0c22c/attachment.html>


More information about the llvm-bugs mailing list