2002-04-14 06:23:00 +00:00
|
|
|
# test/Regression/LLC/Makefile
|
|
|
|
#
|
|
|
|
# This directory contains regression tests for the LLVM sparc backend.
|
|
|
|
#
|
|
|
|
LEVEL = ../../..
|
2003-01-23 16:51:24 +00:00
|
|
|
include $(LEVEL)/test/Makefile.tests
|
2002-04-14 06:23:00 +00:00
|
|
|
|
2002-09-23 14:23:15 +00:00
|
|
|
# Only .ll tests here. C tests are run via Makefile.singlesrc above.
|
|
|
|
#
|
2003-05-11 18:38:25 +00:00
|
|
|
LL_TESTS := $(wildcard *.ll)
|
|
|
|
LLX_TESTS := $(wildcard *.llx)
|
2002-04-14 06:23:00 +00:00
|
|
|
|
2003-05-11 18:38:25 +00:00
|
|
|
all:: $(addprefix Output/, $(LL_TESTS:%.ll=%.ts))
|
|
|
|
all:: $(addprefix Output/, $(LLX_TESTS:%.llx=%.llx.out))
|
2002-04-14 06:23:00 +00:00
|
|
|
|
|
|
|
Output/%.ts: Output/%.bc $(LLC) Output/.dir
|
|
|
|
@echo "======== Compiling $< =========="
|
|
|
|
$(LLC) -f $< -o $@ || \
|
|
|
|
( rm -f $@; $(FAILURE) $@ )
|
2003-05-11 18:38:25 +00:00
|
|
|
|
|
|
|
Output/%.llx.out: %.llx Output/.dir $(LLC)
|
|
|
|
-$(TESTRUNR) $<
|