[llvm-commits] [llvm] r119987 - in /llvm/trunk/test/CodeGen/SPARC: basictest.ll xnor.ll

Chris Lattner sabre at nondot.org
Mon Nov 22 18:26:53 PST 2010


Author: lattner
Date: Mon Nov 22 20:26:52 2010
New Revision: 119987

URL: http://llvm.org/viewvc/llvm-project?rev=119987&view=rev
Log:
filecheckize

Removed:
    llvm/trunk/test/CodeGen/SPARC/xnor.ll
Modified:
    llvm/trunk/test/CodeGen/SPARC/basictest.ll

Modified: llvm/trunk/test/CodeGen/SPARC/basictest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/basictest.ll?rev=119987&r1=119986&r2=119987&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/basictest.ll (original)
+++ llvm/trunk/test/CodeGen/SPARC/basictest.ll Mon Nov 22 20:26:52 2010
@@ -1,6 +1,26 @@
-; RUN: llc < %s -march=sparc
+; RUN: llc < %s -march=sparc | FileCheck %s
 
-define i32 @test(i32 %X) {
+define i32 @test0(i32 %X) {
 	%tmp.1 = add i32 %X, 1
 	ret i32 %tmp.1
+; CHECK: test0:
+; CHECK: add %i0, 1, %i0
+}
+
+
+;; xnor tests.
+define i32 @test1(i32 %X, i32 %Y) {
+        %A = xor i32 %X, %Y
+        %B = xor i32 %A, -1
+        ret i32 %B
+; CHECK: test1:
+; CHECK: xnor %i0, %i1, %i0
+}
+
+define i32 @test2(i32 %X, i32 %Y) {
+        %A = xor i32 %X, -1
+        %B = xor i32 %A, %Y
+        ret i32 %B
+; CHECK: test2:
+; CHECK: xnor %i0, %i1, %i0
 }

Removed: llvm/trunk/test/CodeGen/SPARC/xnor.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/xnor.ll?rev=119986&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/xnor.ll (original)
+++ llvm/trunk/test/CodeGen/SPARC/xnor.ll (removed)
@@ -1,15 +0,0 @@
-; RUN: llc < %s -march=sparc | \
-; RUN:   grep xnor | count 2
-
-define i32 @test1(i32 %X, i32 %Y) {
-        %A = xor i32 %X, %Y             ; <i32> [#uses=1]
-        %B = xor i32 %A, -1             ; <i32> [#uses=1]
-        ret i32 %B
-}
-
-define i32 @test2(i32 %X, i32 %Y) {
-        %A = xor i32 %X, -1             ; <i32> [#uses=1]
-        %B = xor i32 %A, %Y             ; <i32> [#uses=1]
-        ret i32 %B
-}
-





More information about the llvm-commits mailing list