summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-14 06:23:00 +0000
committerChris Lattner <sabre@nondot.org>2002-04-14 06:23:00 +0000
commit91eda67aaf8362ea5b3578a73ac3848a4f1ba0c4 (patch)
tree99d7934beb71bfaefebc597036d05ce695eb904b /llvm
parent7e358900726255fc7a55e066cb8c4e90213bd01e (diff)
downloadbcm5719-llvm-91eda67aaf8362ea5b3578a73ac3848a4f1ba0c4.tar.gz
bcm5719-llvm-91eda67aaf8362ea5b3578a73ac3848a4f1ba0c4.zip
Checkin first unit testcases for the backend
llvm-svn: 2249
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Regression/LLC/2002-04-14-UnexpectedUnsignedType.ll13
-rw-r--r--llvm/test/Regression/LLC/Makefile15
2 files changed, 28 insertions, 0 deletions
diff --git a/llvm/test/Regression/LLC/2002-04-14-UnexpectedUnsignedType.ll b/llvm/test/Regression/LLC/2002-04-14-UnexpectedUnsignedType.ll
new file mode 100644
index 00000000000..6e617361bc8
--- /dev/null
+++ b/llvm/test/Regression/LLC/2002-04-14-UnexpectedUnsignedType.ll
@@ -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
diff --git a/llvm/test/Regression/LLC/Makefile b/llvm/test/Regression/LLC/Makefile
new file mode 100644
index 00000000000..41cd6de4c43
--- /dev/null
+++ b/llvm/test/Regression/LLC/Makefile
@@ -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) $@ )
OpenPOWER on IntegriCloud