[llvm-commits] [llvm] r50128 - /llvm/trunk/test/Transforms/SCCP/2008-03-10-sret.ll
Chris Lattner
sabre at nondot.org
Tue Apr 22 20:49:32 PDT 2008
Author: lattner
Date: Tue Apr 22 22:49:32 2008
New Revision: 50128
URL: http://llvm.org/viewvc/llvm-project?rev=50128&view=rev
Log:
make this test more interesting.
Modified:
llvm/trunk/test/Transforms/SCCP/2008-03-10-sret.ll
Modified: llvm/trunk/test/Transforms/SCCP/2008-03-10-sret.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SCCP/2008-03-10-sret.ll?rev=50128&r1=50127&r2=50128&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SCCP/2008-03-10-sret.ll (original)
+++ llvm/trunk/test/Transforms/SCCP/2008-03-10-sret.ll Tue Apr 22 22:49:32 2008
@@ -1,12 +1,14 @@
-; RUN: llvm-as < %s | opt -ipsccp -disable-output
+; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | grep {ret i32 36}
+; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | grep {ret i32 18, i32 17}
define internal {i32, i32} @bar(i32 %A) {
- %X = add i32 1, 2
- ret i32 %A, i32 %A
+ %X = add i32 1, %A
+ ret i32 %X, i32 %A
}
define i32 @foo() {
%X = call {i32, i32} @bar(i32 17)
%Y = getresult {i32, i32} %X, 0
- ret i32 %Y
+ %Z = add i32 %Y, %Y
+ ret i32 %Z
}
More information about the llvm-commits
mailing list