diff options
author | Chris Lattner <sabre@nondot.org> | 2002-06-24 17:46:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-06-24 17:46:05 +0000 |
commit | e2d7896d9bbed8a4a85e3ca6175d245eaa5a56a4 (patch) | |
tree | 98bd2524ddc4fb079ec2b4fae5573453f13a2cb5 | |
parent | c917d106aaa05f03a037ab4258d416d35760ce32 (diff) | |
download | bcm5719-llvm-e2d7896d9bbed8a4a85e3ca6175d245eaa5a56a4.tar.gz bcm5719-llvm-e2d7896d9bbed8a4a85e3ca6175d245eaa5a56a4.zip |
Basic test of the inlinr
llvm-svn: 2767
-rw-r--r-- | llvm/test/Regression/Transforms/Inline/Makefile | 12 | ||||
-rw-r--r-- | llvm/test/Regression/Transforms/Inline/basictest.ll | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/Inline/Makefile b/llvm/test/Regression/Transforms/Inline/Makefile new file mode 100644 index 00000000000..e6067bb43a3 --- /dev/null +++ b/llvm/test/Regression/Transforms/Inline/Makefile @@ -0,0 +1,12 @@ + +LEVEL = ../../../.. +include $(LEVEL)/test/Makefile.tests + +TESTS := $(wildcard *.ll) + +all:: $(addprefix Output/, $(TESTS:%.ll=%.ibc)) + +Output/%.ibc: %.ll Output/.dir $(LOPT) + ($(LAS) < $< | $(LOPT) -inline -q -f -o $@) || \ + ( rm -f $@; $(FAILURE) $@ ) + diff --git a/llvm/test/Regression/Transforms/Inline/basictest.ll b/llvm/test/Regression/Transforms/Inline/basictest.ll new file mode 100644 index 00000000000..ba79998c1b6 --- /dev/null +++ b/llvm/test/Regression/Transforms/Inline/basictest.ll @@ -0,0 +1,11 @@ + + +int %func(int %i) { + ret int %i +} + +int %main(int %argc) { + %X = call int %func(int 7) + %Y = add int %X, %argc + ret int %Y +} |