Changes in directory llvm/test/Regression/CodeGen/SPARC:
2006-01-22-BitConvertLegalize.ll added (r1.1) basictest.ll added (r1.1) ctpop.ll added (r1.1) dg.exp added (r1.1) xnor.ll added (r1.1) --- Log message: move V8 testcases here --- Diffs of the changes: (+46 -0) 2006-01-22-BitConvertLegalize.ll | 12 ++++++++++++ basictest.ll | 6 ++++++ ctpop.ll | 11 +++++++++++ dg.exp | 3 +++ xnor.ll | 14 ++++++++++++++ 5 files changed, 46 insertions(+) Index: llvm/test/Regression/CodeGen/SPARC/2006-01-22-BitConvertLegalize.ll diff -c /dev/null llvm/test/Regression/CodeGen/SPARC/2006-01-22-BitConvertLegalize.ll:1.1 *** /dev/null Sat Feb 4 23:53:06 2006 --- llvm/test/Regression/CodeGen/SPARC/2006-01-22-BitConvertLegalize.ll Sat Feb 4 23:52:55 2006 *************** *** 0 **** --- 1,12 ---- + ; RUN: llvm-as < %s | llc -march=sparc + + void %execute_list() { + %tmp.33.i = div float 0.000000e+00, 0.000000e+00 ; <float> [#uses=1] + %tmp.37.i = mul float 0.000000e+00, %tmp.33.i ; <float> [#uses=1] + %tmp.42.i = add float %tmp.37.i, 0.000000e+00 ; <float> [#uses=1] + call void %gl_EvalCoord1f( float %tmp.42.i ) + ret void + } + + declare void %gl_EvalCoord1f( float) + Index: llvm/test/Regression/CodeGen/SPARC/basictest.ll diff -c /dev/null llvm/test/Regression/CodeGen/SPARC/basictest.ll:1.1 *** /dev/null Sat Feb 4 23:53:08 2006 --- llvm/test/Regression/CodeGen/SPARC/basictest.ll Sat Feb 4 23:52:55 2006 *************** *** 0 **** --- 1,6 ---- + ; RUN: llvm-as < %s | llc -march=sparc + + int %test(int %X) { + %tmp.1 = add int %X, 1 ; <int> [#uses=1] + ret int %tmp.1 + } Index: llvm/test/Regression/CodeGen/SPARC/ctpop.ll diff -c /dev/null llvm/test/Regression/CodeGen/SPARC/ctpop.ll:1.1 *** /dev/null Sat Feb 4 23:53:08 2006 --- llvm/test/Regression/CodeGen/SPARC/ctpop.ll Sat Feb 4 23:52:55 2006 *************** *** 0 **** --- 1,11 ---- + ; RUN: llvm-as < %s | llc -march=sparc -mattr=-v9 && + ; RUN: llvm-as < %s | llc -march=sparc -mattr=v9 -enable-sparc-v9-insts && + ; RUN: llvm-as < %s | llc -march=sparc -mattr=-v9 | not grep popc && + ; RUN: llvm-as < %s | llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc + + declare uint %llvm.ctpop.i32(uint) + uint %test(uint %X) { + %Y = call uint %llvm.ctpop.i32(uint %X) + ret uint %Y + } + Index: llvm/test/Regression/CodeGen/SPARC/dg.exp diff -c /dev/null llvm/test/Regression/CodeGen/SPARC/dg.exp:1.1 *** /dev/null Sat Feb 4 23:53:08 2006 --- llvm/test/Regression/CodeGen/SPARC/dg.exp Sat Feb 4 23:52:55 2006 *************** *** 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 Index: llvm/test/Regression/CodeGen/SPARC/xnor.ll diff -c /dev/null llvm/test/Regression/CodeGen/SPARC/xnor.ll:1.1 *** /dev/null Sat Feb 4 23:53:08 2006 --- llvm/test/Regression/CodeGen/SPARC/xnor.ll Sat Feb 4 23:52:55 2006 *************** *** 0 **** --- 1,14 ---- + ; RUN: llvm-as < %s | llc -march=sparc && + ; RUN: llvm-as < %s | llc -march=sparc | grep xnor | wc -l | grep 2 + + int %test1(int %X, int %Y) { + %A = xor int %X, %Y + %B = xor int %A, -1 + ret int %B + } + + int %test2(int %X, int %Y) { + %A = xor int %X, -1 + %B = xor int %A, %Y + ret int %B + } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits