Convert tests using "| wc -l | grep ..." to use the count script.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41097 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2007-08-15 13:36:28 +00:00
parent 7375bb9c8c
commit 28beeeac4d
228 changed files with 467 additions and 467 deletions
@@ -1,5 +1,5 @@
; There should be exactly two calls here (memset and malloc), no more.
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep jsr | wc -l | grep 2
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep jsr | count 2
%typedef.bc_struct = type opaque
+13 -13
View File
@@ -1,21 +1,21 @@
;test all the shifted and signextending adds and subs with and without consts
;
; RUN: llvm-as < %s | llc -march=alpha -o %t.s -f
; RUN: grep { addl} %t.s | wc -l | grep 2
; RUN: grep { addq} %t.s | wc -l | grep 2
; RUN: grep { subl} %t.s | wc -l | grep 2
; RUN: grep { subq} %t.s | wc -l | grep 1
; RUN: grep { addl} %t.s | count 2
; RUN: grep { addq} %t.s | count 2
; RUN: grep { subl} %t.s | count 2
; RUN: grep { subq} %t.s | count 1
;
; RUN: grep {lda \$0,-100(\$16)} %t.s | wc -l | grep 1
; RUN: grep {s4addl} %t.s | wc -l | grep 2
; RUN: grep {s8addl} %t.s | wc -l | grep 2
; RUN: grep {s4addq} %t.s | wc -l | grep 2
; RUN: grep {s8addq} %t.s | wc -l | grep 2
; RUN: grep {lda \$0,-100(\$16)} %t.s | count 1
; RUN: grep {s4addl} %t.s | count 2
; RUN: grep {s8addl} %t.s | count 2
; RUN: grep {s4addq} %t.s | count 2
; RUN: grep {s8addq} %t.s | count 2
;
; RUN: grep {s4subl} %t.s | wc -l | grep 2
; RUN: grep {s8subl} %t.s | wc -l | grep 2
; RUN: grep {s4subq} %t.s | wc -l | grep 2
; RUN: grep {s8subq} %t.s | wc -l | grep 2
; RUN: grep {s4subl} %t.s | count 2
; RUN: grep {s8subl} %t.s | count 2
; RUN: grep {s4subq} %t.s | count 2
; RUN: grep {s8subq} %t.s | count 2
define i32 @al(i32 signext %x.s, i32 signext %y.s) signext {
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep cmpbge | wc -l | grep 2
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep cmpbge | count 2
bool %test1(ulong %A, ulong %B) {
%C = and ulong %A, 255