mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-02 09:01:37 +00:00
Checkin first unit testcases for the backend
llvm-svn: 2249
This commit is contained in:
parent
2e20403fad
commit
c1442592fb
13
test/Regression/LLC/2002-04-14-UnexpectedUnsignedType.ll
Normal file
13
test/Regression/LLC/2002-04-14-UnexpectedUnsignedType.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; This causes the backend to assert out with:
|
||||
; SparcInstrInfo.cpp:103: failed assertion `0 && "Unexpected unsigned type"'
|
||||
;
|
||||
implementation
|
||||
|
||||
declare void "bar"(sbyte* %G)
|
||||
|
||||
void "foo"()
|
||||
begin
|
||||
%cast225 = cast ulong 123456 to sbyte* ; <sbyte*> [#uses=1]
|
||||
call void %bar( sbyte* %cast225)
|
||||
ret void
|
||||
end
|
15
test/Regression/LLC/Makefile
Normal file
15
test/Regression/LLC/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
# test/Regression/LLC/Makefile
|
||||
#
|
||||
# This directory contains regression tests for the LLVM sparc backend.
|
||||
#
|
||||
LEVEL = ../../..
|
||||
include $(LEVEL)/test/Makefile.tests
|
||||
|
||||
TESTS := $(wildcard *.ll)
|
||||
|
||||
all:: $(addprefix Output/, $(TESTS:%.ll=%.ts))
|
||||
|
||||
Output/%.ts: Output/%.bc $(LLC) Output/.dir
|
||||
@echo "======== Compiling $< =========="
|
||||
$(LLC) -f $< -o $@ || \
|
||||
( rm -f $@; $(FAILURE) $@ )
|
Loading…
Reference in New Issue
Block a user