[llvm-commits] CVS: llvm/test/Regression/Transforms/Inline/alloca_test.ll Makefile basictest.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu May 29 10:17:05 PDT 2003
Changes in directory llvm/test/Regression/Transforms/Inline:
alloca_test.ll added (r1.1)
Makefile updated: 1.1 -> 1.2
basictest.ll updated: 1.1 -> 1.2
---
Log message:
Change tests to use testrunner
new test
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/Inline/alloca_test.ll
diff -c /dev/null llvm/test/Regression/Transforms/Inline/alloca_test.ll:1.1
*** /dev/null Thu May 29 10:16:20 2003
--- llvm/test/Regression/Transforms/Inline/alloca_test.ll Thu May 29 10:16:10 2003
***************
*** 0 ****
--- 1,19 ----
+ ; This test ensures that alloca instructions in the entry block for an inlined
+ ; function are moved to the top of the function they are inlined into.
+ ;
+ ; RUN: as < %s | opt -inline | dis | grep -C 1 alloca | grep Entry:
+
+ int %func(int %i) {
+ %X = alloca int
+ ret int %i
+ }
+
+ declare void %bar()
+
+ int %main(int %argc) {
+ Entry:
+ call void %bar()
+ %X = call int %func(int 7)
+ %Y = add int %X, %argc
+ ret int %Y
+ }
Index: llvm/test/Regression/Transforms/Inline/Makefile
diff -u llvm/test/Regression/Transforms/Inline/Makefile:1.1 llvm/test/Regression/Transforms/Inline/Makefile:1.2
--- llvm/test/Regression/Transforms/Inline/Makefile:1.1 Mon Jun 24 12:46:05 2002
+++ llvm/test/Regression/Transforms/Inline/Makefile Thu May 29 10:16:09 2003
@@ -4,9 +4,7 @@
TESTS := $(wildcard *.ll)
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ibc))
-
-Output/%.ibc: %.ll Output/.dir $(LOPT)
- ($(LAS) < $< | $(LOPT) -inline -q -f -o $@) || \
- ( rm -f $@; $(FAILURE) $@ )
+all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
+Output/%.ll.out: %.ll Output/.dir $(LOPT)
+ -$(TESTRUNR) $<
Index: llvm/test/Regression/Transforms/Inline/basictest.ll
diff -u llvm/test/Regression/Transforms/Inline/basictest.ll:1.1 llvm/test/Regression/Transforms/Inline/basictest.ll:1.2
--- llvm/test/Regression/Transforms/Inline/basictest.ll:1.1 Mon Jun 24 12:46:05 2002
+++ llvm/test/Regression/Transforms/Inline/basictest.ll Thu May 29 10:16:10 2003
@@ -1,4 +1,4 @@
-
+; RUN: as < %s | opt -inline -disable-output -print
int %func(int %i) {
ret int %i
More information about the llvm-commits
mailing list