Add basic test for XCore backend

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58841 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Osborne 2008-11-07 11:24:12 +00:00
parent f943b1586f
commit b7ee8c4c1f
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,6 @@
; RUN: llvm-as < %s | llc -march=xcore
define i32 @test(i32 %X) {
%tmp.1 = add i32 %X, 1
ret i32 %tmp.1
}

View File

@ -0,0 +1,5 @@
load_lib llvm.exp
if { [llvm_supports_target XCore] } {
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
}