<commit_before>TESTS := $(wildcard *.ll)

test all : testasmdis testopt
	@echo "All tests successfully completed!"

testasmdis : $(TESTS:%.ll=%.ll.asmdis)
	@echo "All assembler/disassembler test succeeded!"

testopt : $(TESTS:%.ll=%.ll.opt)

clean :
	rm -f *.[123] *.bc core

%.asmdis: %
	@echo "Running assembler/disassembler test on $<"
	@./TestAsmDisasm.sh $<

%.opt: %
	@echo "Running optimizier test on $<"
	@./TestOptimizer.sh $<
<commit_msg>Added support for testing instruction selection on all but 2 tests.<commit_after>TESTS := $(wildcard *.ll)

SELECTTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch")

test all : testasmdis testopt
	@echo "All tests successfully completed!"

testasmdis : $(TESTS:%.ll=%.ll.asmdis)
	@echo "All assembler/disassembler test succeeded!"

testopt : $(TESTS:%.ll=%.ll.opt)

testselect : $(SELECTTESTS:%.ll=%.mc)

clean :
	rm -f *.[123] *.bc *.mc core

%.asmdis: %
	@echo "Running assembler/disassembler test on $<"
	@./TestAsmDisasm.sh $<

%.opt: %
	@echo "Running optimizier test on $<"
	@./TestOptimizer.sh $<

%.bc: %.ll
	rm -f $@
	as $<

%.mc: %.bc
	@echo "Generating machine instructions for $<"
	@llc -dselect i $< > $@

{'fraction_non_alphanumeric': 0.18166526492851134, 'fraction_numerical': 0.005887300252312868, 'mean_word_length': 3.9173553719008263, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6365491', 'n_tokens_mistral': 476, 'n_tokens_neox': 447, 'n_words': 120}