[llvm-commits] CVS: llvm/test/Programs/TEST.vtl.Makefile

John Criswell criswell at cs.uiuc.edu
Tue Feb 24 15:35:01 PST 2004


Changes in directory llvm/test/Programs:

TEST.vtl.Makefile added (r1.1)

---
Log message:

Initial commit of VTune tests for the LLVM Build system.



---
Diffs of the changes:  (+46 -0)

Index: llvm/test/Programs/TEST.vtl.Makefile
diff -c /dev/null llvm/test/Programs/TEST.vtl.Makefile:1.1
*** /dev/null	Tue Feb 24 15:34:43 2004
--- llvm/test/Programs/TEST.vtl.Makefile	Tue Feb 24 15:34:32 2004
***************
*** 0 ****
--- 1,46 ----
+ ##===- test/Programs/TEST.example.Makefile -----------------*- Makefile -*-===##
+ #
+ # Example to show a custom test.  This test just prints the size of the bytecode
+ # file for each program.
+ #
+ ##===----------------------------------------------------------------------===##
+ 
+ TESTNAME = $*
+ 
+ VTL := /opt/intel/vtune/bin/vtl
+ 
+ #
+ # Events: These will need to be modified for every different CPU that is used
+ # (i.e. the Pentium 3 on Cypher has a different set of available events than
+ # the Pentium 4 on Zion).
+ #
+ P4_EVENTS := "-ec en='2nd Level Cache Read Misses' en='2nd-Level Cache Read References'"
+ P3_EVENTS := "-ec en='L2 Cache Request Misses (highly correlated)'"
+ 
+ EVENTS := $(P3_EVENTS)
+ 
+ #
+ # Generate events for LLC
+ #
+ #$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
+ #test.$(TEST).%: Output/%.llc
+ 	#@echo "========================================="
+ 	#@echo "Running '$(TEST)' test on '$(TESTNAME)' program"
+ 	#$(VERB) $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<
+ 	#-$(VERB) $(VTL) run $*
+ 	#-$(VERB) $(VTL) view > $@
+ 	#$(VERB)  $(VTL) delete $* -f
+ 
+ #
+ # Generate events for CBE
+ #
+ $(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
+ test.$(TEST).%: Output/%.cbe
+ 	@echo "========================================="
+ 	@echo "Running '$(TEST)' test on '$(TESTNAME)' program"
+ 	$(VERB) $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<
+ 	-$(VERB) $(VTL) run $*
+ 	-$(VERB) $(VTL) view > $@
+ 	$(VERB)  $(VTL) delete $* -f
+ 
+ 





More information about the llvm-commits mailing list