Skip to content
Snippets Groups Projects
Commit a8179526 authored by Chris Lattner's avatar Chris Lattner
Browse files

Checkin simple testcases for LLVM-JIT

llvm-svn: 4288
parent 348fcb5b
No related branches found
No related tags found
No related merge requests found
# test/Regression/Jello/Makefile
#
# This directory contains regression tests for the LLVM jello program.
#
LEVEL = ../../..
include $(LEVEL)/test/Makefile.tests
TESTS := $(wildcard *.ll)
FTESTS := $(wildcard *.llx) # Freeform tests
all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
Output/%.out: Output/%.bc
@echo "======== Running $< ==================="
$(VERB) jello $< > $@ 2>&1 || \
( cat $@; rm -f $@; $(FAILURE) $@ )
all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
Output/%.llx.out: %.llx Output/.dir $(LAS)
-$(TESTRUNR) $<
; test ret
void %main() {
ret void
}
; test ret of an integer
int %main() {
ret int 0
}
; test a simple add
int %main() {
%X = add int 1, 2
ret int %X
}
; test unconditional branch
int %main() {
br label %Test
Test:
ret int 0
}
; test phi node
int %main() {
br label %Test
Test:
%X = phi int [7, %0]
ret int %X
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment