[llvm-commits] CVS: llvm/test/Regression/Transforms/GCSE/RLE-Preserve.ll

Chris Lattner lattner at cs.uiuc.edu
Mon Jun 16 07:00:01 PDT 2003


Changes in directory llvm/test/Regression/Transforms/GCSE:

RLE-Preserve.ll updated: 1.2 -> 1.3

---
Log message:

Fix testcase to work with store forwarding


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/GCSE/RLE-Preserve.ll
diff -u llvm/test/Regression/Transforms/GCSE/RLE-Preserve.ll:1.2 llvm/test/Regression/Transforms/GCSE/RLE-Preserve.ll:1.3
--- llvm/test/Regression/Transforms/GCSE/RLE-Preserve.ll:1.2	Fri Aug 30 15:18:09 2002
+++ llvm/test/Regression/Transforms/GCSE/RLE-Preserve.ll	Mon Jun 16 06:59:34 2003
@@ -1,27 +1,24 @@
 ; This testcase ensures that redundant loads are preserved when they are not 
 ; allowed to be eliminated.
-; RUN: as < %s | dis > Output/%s.before
-; RUN: as < %s | opt -load-vn -gcse | dis > Output/%s.after
-; RUN: echo some output
-; RUN: diff Output/%s.before Output/%s.after
+; RUN: as < %s | opt -load-vn -gcse | dis | grep sub
 ;
-int "test1"(int* %P) {
+int %test1(int* %P) {
 	%A = load int* %P
-	store int 1, int * %P
+	store int 1, int* %P
 	%B = load int* %P
-	%C = add int %A, %B
+	%C = sub int %A, %B
 	ret int %C
 }
 
-int "test2"(int* %P) {
+int %test2(int* %P) {
 	%A = load int* %P
 	br label %BB2
 BB2:
-	store int 5, int * %P
+	store int 5, int* %P
 	br label %BB3
 BB3:
 	%B = load int* %P
-	%C = add int %A, %B
+	%C = sub int %A, %B
 	ret int %C
 }
 





More information about the llvm-commits mailing list