summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorNikolai Bozhenov <nikolai.bozhenov@intel.com>2017-05-29 09:48:30 +0000
committerNikolai Bozhenov <nikolai.bozhenov@intel.com>2017-05-29 09:48:30 +0000
commit82f0801c1b2baaee5479e0f8fd0840392958ef9b (patch)
tree7b0a35b4d3bd1277ccf5ca0e95dab20365b83dbb /llvm/test
parent0c05cce4e0adf46f4455409b81223808b590e6d8 (diff)
downloadbcm5719-llvm-82f0801c1b2baaee5479e0f8fd0840392958ef9b.tar.gz
bcm5719-llvm-82f0801c1b2baaee5479e0f8fd0840392958ef9b.zip
[Nios2] Target registration
Reviewers: craig.topper, hfinkel, joerg, lattner, zvi Reviewed By: craig.topper Subscribers: oren_ben_simhon, igorb, belickim, tvvikram, mgorny, llvm-commits, pavel.v.chupin, DavidKreitzer Differential Revision: https://reviews.llvm.org/D32669 Patch by AndreiGrischenko <andrei.l.grischenko@intel.com> llvm-svn: 304144
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Nios2/lit.local.cfg3
-rw-r--r--llvm/test/CodeGen/Nios2/target_support.ll11
2 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Nios2/lit.local.cfg b/llvm/test/CodeGen/Nios2/lit.local.cfg
new file mode 100644
index 00000000000..84c8b039391
--- /dev/null
+++ b/llvm/test/CodeGen/Nios2/lit.local.cfg
@@ -0,0 +1,3 @@
+if not 'Nios2' in config.root.targets:
+ config.unsupported = True
+
diff --git a/llvm/test/CodeGen/Nios2/target_support.ll b/llvm/test/CodeGen/Nios2/target_support.ll
new file mode 100644
index 00000000000..90e7020b2fc
--- /dev/null
+++ b/llvm/test/CodeGen/Nios2/target_support.ll
@@ -0,0 +1,11 @@
+; This tests that llc accepts Nios2 target.
+
+; RUN: not not llc < %s -asm-verbose=false -march=nios2 2>&1 | FileCheck %s --check-prefix=ARCH
+; RUN: not not llc < %s -asm-verbose=false -mtriple=nios2 2>&1 | FileCheck %s --check-prefix=TRIPLE
+
+; ARCH-NOT: invalid target
+; TRIPLE-NOT: unable to get target
+
+define i32 @f(i32 %i) {
+ ret i32 %i
+}
OpenPOWER on IntegriCloud