mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
testmemory and sumarray now work with instruction selection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@715 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
LLC := ../tools/Debug/llc
|
LLC := ../tools/Debug/llc
|
||||||
AS := ../tools/Debug/as
|
AS := ../tools/Debug/as
|
||||||
LLCOPTS := -dsched y
|
LLCOPTS := -dsched y
|
||||||
|
ARCHFLAGS = ## -xarch=v9
|
||||||
|
|
||||||
|
CC = /opt/SUNWspro/bin/cc
|
||||||
|
CCFLAGS = -g $(ARCHFLAGS)
|
||||||
|
## CC = gcc
|
||||||
|
## CCFLAGS = -g $(ARCHFLAGS) ## -mcpu=v9
|
||||||
|
|
||||||
TESTS := $(wildcard *.ll)
|
TESTS := $(wildcard *.ll)
|
||||||
|
|
||||||
LLCTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch | grep -v sumarray | grep -v opttest | grep -v xx.ll | grep -v select.ll )
|
LLCTESTS := $(shell /bin/ls *.ll | grep -v testswitch | grep -v opttest | grep -v xx.ll | grep -v select.ll )
|
||||||
|
|
||||||
|
|
||||||
test all : testasmdis testopt testcodegen
|
test all : testasmdis testopt testcodegen
|
||||||
@@ -21,6 +27,8 @@ testsched : $(LLCTESTS:%.ll=%.mc)
|
|||||||
|
|
||||||
testcodegen : $(LLCTESTS:%.ll=%.mc)
|
testcodegen : $(LLCTESTS:%.ll=%.mc)
|
||||||
|
|
||||||
|
testsparc : $(LLCTESTS:%.ll=%.s)
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -f *.[123] *.bc *.mc core
|
rm -f *.[123] *.bc *.mc core
|
||||||
|
|
||||||
@@ -42,6 +50,10 @@ clean :
|
|||||||
%.s: %.ll $(LLC) $(AS)
|
%.s: %.ll $(LLC) $(AS)
|
||||||
$(AS) < $< | $(LLC) > $@
|
$(AS) < $< | $(LLC) > $@
|
||||||
|
|
||||||
%.o: %.s %.ll
|
## %.o: %.s %.ll
|
||||||
/usr/ccs/bin/as -xarch=v9 $<
|
## /usr/ccs/bin/as $(ARCHFLAGS) $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o: %.s
|
||||||
|
$(CC) -c $(CCFLAGS) $<
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user