[llvm-commits] CVS: llvm/test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise.ll

Reid Spencer rspencer at reidspencer.com
Thu Jan 4 10:09:07 PST 2007


Chris, 

Here is what llvm-upgrade produces for this test case:

%Hash = type { { uint, sbyte*, \2 }**, int( uint )*, int }*
%hash = type { { uint, sbyte*, \2 }**, int( uint )*, int }
%hash_el = type { uint, sbyte*, \2 }*
implementation
define %Hash "MakeHash"(int %size, int( uint )* %map) {
    %reg112 = malloc sbyte, uint 24
    %reg115 = malloc sbyte, uint 96
    %cast237 = bitcast sbyte* %reg112 to sbyte**
    store sbyte* %reg115, sbyte** %cast237
    %cast246 = bitcast sbyte* %reg112 to %Hash
    ret %Hash %cast246

}

It does not fail. Are you sure you're working with TOT? There have been
changes made as late as yesterday that are needed in order for it to
work correctly.

Reid.

On Thu, 2007-01-04 at 09:54 -0800, Chris Lattner wrote:
> On Jan 4, 2007, at 9:49 AM, Chris Lattner wrote:
> 
> >
> > llvm-upgrade gets a parse error on this testcase, so it's not being
> > tested at all.  This appears to be an llvm-upgrade bug:
> >
> >   $ llvm-upgrade 2002-03-21-MissedRaise.ll
> > llvm-upgrade: parse error
> > 2002-03-21-MissedRaise.ll:7:  while reading token: '%Hash'
> 
> This actually affects a lot of testcases in the suite, leading me to  
> believe that the testsuite isn't actually testing many programs.   
> Reid, can you run llvm-upgrade on all the .ll files in llvm/test and  
> figure out which ones it barfs on?
> 
> This is a serious problem.  For example Regression/Transforms/ 
> LevelRaise/2003-05-01-CallCast.ll is reported as succeeding because  
> llvm-upgrade fails to parse the input.  This means that there may be  
> many tests failing and we don't know it because the failures are masked.
> 
> Perhaps in addition to returning an error code, llvm-upgrade should  
> emit something like "parse failed" to the output stream, so that  
> later llvm-as's will die.
> 
> -Chris
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list