mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Add basic test for XCore backend
llvm-svn: 58841
This commit is contained in:
parent
224268f88b
commit
f4fb6eaf71
6
test/CodeGen/XCore/basictest.ll
Normal file
6
test/CodeGen/XCore/basictest.ll
Normal 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
|
||||
}
|
5
test/CodeGen/XCore/dg.exp
Normal file
5
test/CodeGen/XCore/dg.exp
Normal file
@ -0,0 +1,5 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
if { [llvm_supports_target XCore] } {
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
|
||||
}
|
Loading…
Reference in New Issue
Block a user