Add basic test for XCore backend

llvm-svn: 58841
This commit is contained in:
Richard Osborne 2008-11-07 11:24:12 +00:00
parent 3219819ffe
commit 86d68a492a
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}]]
}