mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
Add basic test for XCore backend
llvm-svn: 58841
This commit is contained in:
parent
3219819ffe
commit
86d68a492a
6
llvm/test/CodeGen/XCore/basictest.ll
Normal file
6
llvm/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
llvm/test/CodeGen/XCore/dg.exp
Normal file
5
llvm/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