[llvm-commits] [poolalloc] r137580 - /poolalloc/trunk/test/dsa/var_arg/basic.ll

Will Dietz wdietz2 at illinois.edu
Sun Aug 14 02:54:24 PDT 2011


Author: wdietz2
Date: Sun Aug 14 04:54:24 2011
New Revision: 137580

URL: http://llvm.org/viewvc/llvm-project?rev=137580&view=rev
Log:
Update 'va_arg' instruction lit test to test basic functionality.

Verify dsa passes can handle this instruction, and that they set
flags as we'd expect it to.

Modified:
    poolalloc/trunk/test/dsa/var_arg/basic.ll

Modified: poolalloc/trunk/test/dsa/var_arg/basic.ll
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/var_arg/basic.ll?rev=137580&r1=137579&r2=137580&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/var_arg/basic.ll (original)
+++ poolalloc/trunk/test/dsa/var_arg/basic.ll Sun Aug 14 04:54:24 2011
@@ -1,4 +1,28 @@
-;XFAIL: *
+; Same as basic_32.ll and basic_64.ll, but uses
+; the 'va_arg' instruction directly.
+; Verify all the passes run on this
+;RUN: dsaopt %s -dsa-local -disable-output
+;RUN: dsaopt %s -dsa-bu -disable-output
+;RUN: dsaopt %s -dsa-td -disable-output
+;RUN: dsaopt %s -dsa-eq -disable-output
+;=== Local Tests ===
+; Verify VAStart flag
+;RUN: dsaopt %s -dsa-local -analyze -verify-flags "get:ap+V"
+; Don't propagate the VAStart flag to children...
+;RUN: dsaopt %s -dsa-local -analyze -verify-flags "get:ap:8-V"
+;RUN: dsaopt %s -dsa-local -analyze -verify-flags "get:ap:16-V"
+; On 64-bit, VAStart node should be a struct pointing to an array of the arguments
+;RUN: dsaopt %s -dsa-local -analyze -check-type=get:ap:8,FoldedVOID
+; Both offsets 8 and 16 point to the array as a simplification.
+; Verify that these are indeed the same node.
+;RUN: dsaopt %s -dsa-local -analyze -check-same-node \
+;RUN: "get:ap:8,get:ap:16"
+; And the argument node should be of the proper type (in this case an i32)
+;RUN: dsaopt %s -dsa-local -analyze -check-type=get:ap:8:0,0:i32
+; The argument should be ref'd and mod'd.
+; NOTE: This behavior differs from that of the non-instruction version.
+; Investigate?
+;RUN: dsaopt %s -dsa-local -analyze --verify-flags "get:ap:8:0+R+M"
 ; ModuleID = 'basic.o'
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
 target triple = "x86_64-unknown-linux-gnu"





More information about the llvm-commits mailing list