[llvm-commits] test/C++Frontend/2008-02-13-sret.cpp

Duncan Sands baldrick at free.fr
Fri Feb 15 11:42:38 PST 2008


On Thursday 14 February 2008 19:02:26 Dale Johannesen wrote:
> 
> On Feb 14, 2008, at 6:52 AM, Duncan Sands wrote:
> 
> > Hi Dale, this test is failing for me (x86-32 linux):
> > there is nothing called retval.
> >
> > // RUN: %llvmgxx -S -O0 -emit-llvm %s -o - | grep retval | grep S242  
> > | grep {i32 1} | count 2
> 
> OK, that's because Linux returns S242 by the sret mechanism instead of  
> as an i64.  What's I'd like to do to preserve the sense of the test is  
> grep for retval | memtmp, but I'm not sure how to do that portably.   
> Does this work for you?
> 
> // RUN: %llvmgxx -S -O0 -emit-llvm %s -o - | grep {retval\\|memtmp} |  
> grep S242 | grep {i32 1} | count 2

It works for me so I've committed it.

Thanks!

Duncan.



More information about the llvm-commits mailing list