summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-05-24 18:32:33 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-05-24 18:32:33 +0000
commitdf98a7a34dde36bda1c82fa924be52c7becbcdb2 (patch)
treebe95a2788bcce748aeed13f085c8a55e26296174 /llvm/test
parent246f519a51653dfc3a1af1ac4bc31bb252c633fd (diff)
downloadbcm5719-llvm-df98a7a34dde36bda1c82fa924be52c7becbcdb2.tar.gz
bcm5719-llvm-df98a7a34dde36bda1c82fa924be52c7becbcdb2.zip
Enable Mips16 compiler to compile a null program.
First code from the Mips16 compiler. Includes trivial test program. Patch by Reed Kotler. llvm-svn: 157408
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Mips/null.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/null.ll b/llvm/test/CodeGen/Mips/null.ll
new file mode 100644
index 00000000000..a5e2c06576d
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/null.ll
@@ -0,0 +1,10 @@
+; RUN: llc -march=mipsel -mcpu=mips16 < %s | FileCheck %s -check-prefix=16
+
+
+define i32 @main() nounwind {
+entry:
+ ret i32 0
+
+; 16: jr $ra
+
+}
OpenPOWER on IntegriCloud