[llvm-commits] CVS: llvm/examples/BFtoLLVM/tests/Makefile hello.b hello.expected-out

Brian Gaeke gaeke at cs.uiuc.edu
Tue Oct 5 11:05:36 PDT 2004



Changes in directory llvm/examples/BFtoLLVM/tests:

Makefile added (r1.1)
hello.b added (r1.1)
hello.expected-out added (r1.1)
---
Log message:

Add BFtoLLVM example front end


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

Index: llvm/examples/BFtoLLVM/tests/Makefile
diff -c /dev/null llvm/examples/BFtoLLVM/tests/Makefile:1.1
*** /dev/null	Tue Oct  5 13:05:36 2004
--- llvm/examples/BFtoLLVM/tests/Makefile	Tue Oct  5 13:05:26 2004
***************
*** 0 ****
--- 1,45 ----
+ ##===- examples/BFtoLLVM/tests/Makefile --------------------*- Makefile -*-===##
+ #
+ #                     The LLVM Compiler Infrastructure
+ #
+ # This file was developed by the LLVM research group and is distributed under
+ # the University of Illinois Open Source License. See LICENSE.TXT for details.
+ #
+ ##===----------------------------------------------------------------------===##
+ 
+ # Makefile for bf2llvm tests.
+ 
+ LEVEL = ../../..
+ BFTOLLVM = $(LLVMTOOLCURRENT)/BFtoLLVM
+ 
+ include $(LEVEL)/Makefile.common
+ 
+ all:: check
+ 
+ clean::
+ 	rm -rf Output
+ 
+ .SUFFIXES: .ll .gccas.bc .llvm .cbe.c .cbe
+ 
+ Output/%.ll: %.b $(BFTOLLVM) Output/.dir
+ 	$(BFTOLLVM) $< $@
+ 
+ Output/%.gccas.bc: Output/%.ll Output/.dir
+ 	$(LGCCAS) $< -o $@
+ 
+ Output/%.llvm Output/%.llvm.bc: Output/%.gccas.bc Output/.dir
+ 	$(LGCCLD) $< -lc -lcrtend -o Output/$*.llvm
+ 
+ Output/%.cbe.c: Output/%.llvm.bc Output/.dir
+ 	$(LLC) -march=c -f -o=$@ $<
+ 
+ Output/%.cbe: Output/%.cbe.c Output/.dir
+ 	$(CC) -O2 $< -o $@
+ 
+ check: Output/hello.cbe hello.expected-out
+ 	@echo "Running test"
+ 	Output/hello.cbe > Output/hello.out-cbe
+ 	@echo "Checking result"
+ 	diff Output/hello.out-cbe hello.expected-out
+ 	@echo "Test passed"
+ 


Index: llvm/examples/BFtoLLVM/tests/hello.b
diff -c /dev/null llvm/examples/BFtoLLVM/tests/hello.b:1.1
*** /dev/null	Tue Oct  5 13:05:36 2004
--- llvm/examples/BFtoLLVM/tests/hello.b	Tue Oct  5 13:05:26 2004
***************
*** 0 ****
--- 1,5 ----
+ Hello World program
+ >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]
+ <.#>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[
+ <++++>-]<+.[-]++++++++++.
+ 


Index: llvm/examples/BFtoLLVM/tests/hello.expected-out
diff -c /dev/null llvm/examples/BFtoLLVM/tests/hello.expected-out:1.1
*** /dev/null	Tue Oct  5 13:05:36 2004
--- llvm/examples/BFtoLLVM/tests/hello.expected-out	Tue Oct  5 13:05:26 2004
***************
*** 0 ****
--- 1 ----
+ Hello World!






More information about the llvm-commits mailing list