From be4521f333540ff8b7e0eaaa5ce8b2e397d4656c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Sep 2002 22:31:04 +0000 Subject: [PATCH] New testcase distilled from SPEC vortex benchmark llvm-svn: 3894 --- .../ConstantMerge/2002-09-23-CPR-Update.ll | 14 ++++++++++++++ .../Regression/Transforms/ConstantMerge/Makefile | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 llvm/test/Regression/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll create mode 100644 llvm/test/Regression/Transforms/ConstantMerge/Makefile diff --git a/llvm/test/Regression/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll b/llvm/test/Regression/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll new file mode 100644 index 000000000000..aa497c6180e3 --- /dev/null +++ b/llvm/test/Regression/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll @@ -0,0 +1,14 @@ +; RUN: as < %s | opt -constmerge > /dev/null + +%foo = internal constant {int} {int 7} +%bar = internal constant {int} {int 7} + +implementation + +declare int %test(int*) + +void %foo() { + call int %test(int* getelementptr ( {int} * %foo, long 0, ubyte 0)) + call int %test(int* getelementptr ( {int} * %bar, long 0, ubyte 0)) + ret void +} diff --git a/llvm/test/Regression/Transforms/ConstantMerge/Makefile b/llvm/test/Regression/Transforms/ConstantMerge/Makefile new file mode 100644 index 000000000000..91acd4d481b9 --- /dev/null +++ b/llvm/test/Regression/Transforms/ConstantMerge/Makefile @@ -0,0 +1,10 @@ + +LEVEL = ../../../.. +include $(LEVEL)/test/Makefile.tests + +TESTS := $(wildcard *.ll) + +all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out)) + +Output/%.ll.out: %.ll Output/.dir $(LOPT) + -$(TESTRUNR) $<