[llvm-commits] [poolalloc] r106198 - in /poolalloc/trunk/test/var_arg: basic.c multiple_callee.c
Will Dietz
wdietz2 at illinois.edu
Wed Jun 16 18:33:57 PDT 2010
Author: wdietz2
Date: Wed Jun 16 20:33:56 2010
New Revision: 106198
URL: http://llvm.org/viewvc/llvm-project?rev=106198&view=rev
Log:
var_arg test: ignore opt complaining about duplicate definitions to stderr
multiple_callee: check the ds-aa results for correct mod/ref information
Modified:
poolalloc/trunk/test/var_arg/basic.c
poolalloc/trunk/test/var_arg/multiple_callee.c
Modified: poolalloc/trunk/test/var_arg/basic.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/var_arg/basic.c?rev=106198&r1=106197&r2=106198&view=diff
==============================================================================
--- poolalloc/trunk/test/var_arg/basic.c (original)
+++ poolalloc/trunk/test/var_arg/basic.c Wed Jun 16 20:33:56 2010
@@ -6,7 +6,7 @@
//RUN: llvm-gcc -O0 %s -S --emit-llvm -o - | llvm-as > %t.bc
//--check if ds-aa breaks, breaks opts, or results in miscompiled code
//RUN: lli %t.bc > %t.refout
-//RUN: dsaopt %t.bc -ds-aa -O3 -o - | lli > %t.out
+//RUN: dsaopt %t.bc -ds-aa -O3 -o - 2>/dev/null | lli > %t.out
//RUN: diff %t.refout %t.out
//--check properties of this particular test
//N/A
Modified: poolalloc/trunk/test/var_arg/multiple_callee.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/var_arg/multiple_callee.c?rev=106198&r1=106197&r2=106198&view=diff
==============================================================================
--- poolalloc/trunk/test/var_arg/multiple_callee.c (original)
+++ poolalloc/trunk/test/var_arg/multiple_callee.c Wed Jun 16 20:33:56 2010
@@ -11,10 +11,15 @@
//RUN: llvm-gcc -O0 %s -S --emit-llvm -o - | llvm-as > %t.bc
//--check if ds-aa breaks, breaks opts, or results in miscompiled code
//RUN: lli %t.bc > %t.refout
-//RUN: dsaopt %t.bc -ds-aa -instcombine -ds-aa -gvn -ds-aa -dce -o - | lli > %t.out
+//RUN: dsaopt %t.bc -ds-aa -instcombine -ds-aa -gvn -ds-aa -dce -o - 2>/dev/null | lli > %t.out
//RUN: diff %t.refout %t.out
//--check properties of this particular test
-//N/A
+//RUN: dsaopt %t.bc -ds-aa -aa-eval -print-all-alias-modref-info >& %t.aa
+//ds-aa should tell us that assign modifies p1
+//RUN: cat %t.aa | grep {Ptr:.*p1.*@assign} | grep {^\[ \]*ModRef}
+//ds-aa should tell us that assign does something to p2
+//RUN: cat %t.aa | grep {Ptr:.*p2.*@assign} | grep -v NoModRef
+
static int assign( int count, ... )
{
More information about the llvm-commits
mailing list