2002-01-23 21:40:31 +00:00
|
|
|
# test/Regression/Assembler/Makefile
|
|
|
|
#
|
|
|
|
# This directory contains regression tests for the LLVM assembler program.
|
|
|
|
# These LLVM source file tests are just required to assembler properly to pass.
|
|
|
|
#
|
|
|
|
LEVEL = ../../..
|
|
|
|
include $(LEVEL)/test/Makefile.tests
|
|
|
|
|
|
|
|
TESTS := $(wildcard *.ll)
|
2002-07-14 22:32:59 +00:00
|
|
|
FTESTS := $(wildcard *.llx) # Freeform tests
|
2002-01-23 21:40:31 +00:00
|
|
|
|
|
|
|
all:: $(addprefix Output/, $(TESTS:%.ll=%.tbc))
|
|
|
|
|
|
|
|
Output/%.tbc: %.ll $(LAS) Output/.dir
|
|
|
|
@echo "======== Assembling $<"
|
2002-05-03 18:31:30 +00:00
|
|
|
$(LAS) -d -f $< -o $@ > /dev/null 2>&1 || \
|
2002-01-23 21:40:31 +00:00
|
|
|
( rm -f $@; $(FAILURE) $@ )
|
2002-07-14 22:32:59 +00:00
|
|
|
|
2002-07-14 23:25:23 +00:00
|
|
|
all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
|
2002-07-14 22:32:59 +00:00
|
|
|
|
2002-07-14 23:25:23 +00:00
|
|
|
Output/%.llx.out: %.llx Output/.dir $(LAS)
|
2002-07-14 22:32:59 +00:00
|
|
|
-$(TESTRUNR) $<
|
|
|
|
|