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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to