mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
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:
parent
f943b1586f
commit
b7ee8c4c1f
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…
x
Reference in New Issue
Block a user