llvm.org GIT mirror llvm / b42b7f9
Checkin first unit testcases for the backend git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2249 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 18 years ago
3 changed file(s) with 41 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; This causes the backend to assert out with:
1 ; SparcInstrInfo.cpp:103: failed assertion `0 && "Unexpected unsigned type"'
2 ;
3 implementation
4
5 declare void "bar"(sbyte* %G)
6
7 void "foo"()
8 begin
9 %cast225 = cast ulong 123456 to sbyte* ; [#uses=1]
10 call void %bar( sbyte* %cast225)
11 ret void
12 end
0 ; This causes the backend to assert out with:
1 ; SparcInstrInfo.cpp:103: failed assertion `0 && "Unexpected unsigned type"'
2 ;
3 implementation
4
5 declare void "bar"(sbyte* %G)
6
7 void "foo"()
8 begin
9 %cast225 = cast ulong 123456 to sbyte* ; [#uses=1]
10 call void %bar( sbyte* %cast225)
11 ret void
12 end
0 # test/Regression/LLC/Makefile
1 #
2 # This directory contains regression tests for the LLVM sparc backend.
3 #
4 LEVEL = ../../..
5 include $(LEVEL)/test/Makefile.tests
6
7 TESTS := $(wildcard *.ll)
8
9 all:: $(addprefix Output/, $(TESTS:%.ll=%.ts))
10
11 Output/%.ts: Output/%.bc $(LLC) Output/.dir
12 @echo "======== Compiling $< =========="
13 $(LLC) -f $< -o $@ || \
14 ( rm -f $@; $(FAILURE) $@ )