From bf9467792f9ff82abdd29eb531c85ebf096b107c 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. llvm-svn: 24737 --- test/Regression/CodeGen/SparcV8/basictest.ll | 6 ++++++ test/Regression/CodeGen/SparcV8/dg.exp | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 test/Regression/CodeGen/SparcV8/basictest.ll create mode 100644 test/Regression/CodeGen/SparcV8/dg.exp diff --git a/test/Regression/CodeGen/SparcV8/basictest.ll b/test/Regression/CodeGen/SparcV8/basictest.ll new file mode 100644 index 00000000000..043af046ead --- /dev/null +++ b/test/Regression/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/Regression/CodeGen/SparcV8/dg.exp b/test/Regression/CodeGen/SparcV8/dg.exp new file mode 100644 index 00000000000..e326ea721c3 --- /dev/null +++ b/test/Regression/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