From 504640333dce1370a69e85fc5549bce78ae1e855 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 16 Dec 2005 06:24:55 +0000 Subject: [PATCH] A truly trivial testcase to ensure sparcv8 doesn't get completely broken again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24737 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/SparcV8/basictest.ll | 6 ++++++ test/CodeGen/SparcV8/dg.exp | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 test/CodeGen/SparcV8/basictest.ll create mode 100644 test/CodeGen/SparcV8/dg.exp diff --git a/test/CodeGen/SparcV8/basictest.ll b/test/CodeGen/SparcV8/basictest.ll new file mode 100644 index 00000000000..043af046ead --- /dev/null +++ b/test/CodeGen/SparcV8/basictest.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | llc -march=sparcv8 + +int %test(int %X) { + %tmp.1 = add int %X, 1 ; [#uses=1] + ret int %tmp.1 +} diff --git a/test/CodeGen/SparcV8/dg.exp b/test/CodeGen/SparcV8/dg.exp new file mode 100644 index 00000000000..e326ea721c3 --- /dev/null +++ b/test/CodeGen/SparcV8/dg.exp @@ -0,0 +1,3 @@ +load_lib llvm-dg.exp + +llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] $objdir $srcdir $subdir $target_triplet $llvmgcc $llvmgxx $prcontext -- 2.34.1