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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2007-08-15 13:49:33 +00:00
parent e5ab8c6765
commit 43c3db37f6
10 changed files with 15 additions and 15 deletions

View File

@ -1,5 +1,5 @@
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.global.annotations // RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.global.annotations
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep -c llvm.var.annotation | grep 3 // RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.var.annotation | count 3
#include <stdio.h> #include <stdio.h>

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep -c {align 1} | grep 2 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
struct p { struct p {

View File

@ -1,8 +1,8 @@
; RUN: llvm-as < %s | \ ; RUN: llvm-as < %s | \
; RUN: llc -mtriple=arm-linux-gnueabi -o %t -f ; RUN: llc -mtriple=arm-linux-gnueabi -o %t -f
; RUN: grep -c set %t | grep 5 ; RUN: grep set %t | count 5
; RUN: grep -c globl %t | grep 4 ; RUN: grep globl %t | count 4
; RUN: grep -c weak %t | grep 1 ; RUN: grep weak %t | count 1
@bar = external global i32 @bar = external global i32
@foo1 = alias i32* @bar @foo1 = alias i32* @bar

View File

@ -1,7 +1,7 @@
; RUN: llvm-as < %s | \ ; RUN: llvm-as < %s | \
; RUN: llc -march=arm -o %t -f ; RUN: llc -march=arm -o %t -f
; RUN: grep -c ldrb %t | grep 4 ; RUN: grep ldrb %t | count 4
; RUN: grep -c strb %t | grep 4 ; RUN: grep strb %t | count 4
%struct.p = type <{ i8, i32 }> %struct.p = type <{ i8, i32 }>

View File

@ -1,4 +1,4 @@
; RUN: llvm-as < %s | llc -march=x86 | grep -c je | grep 3 ; RUN: llvm-as < %s | llc -march=x86 | grep je | count 3
; RUN: llvm-as < %s | llc -march=x86-64 | grep 4297064449 ; RUN: llvm-as < %s | llc -march=x86-64 | grep 4297064449
; PR 1325+ ; PR 1325+

View File

@ -1,8 +1,8 @@
; RUN: llvm-as < %s | \ ; RUN: llvm-as < %s | \
; RUN: llc -mtriple=i686-pc-linux-gnu -o %t -f ; RUN: llc -mtriple=i686-pc-linux-gnu -o %t -f
; RUN: grep -c set %t | grep 5 ; RUN: grep set %t | count 5
; RUN: grep -c globl %t | grep 4 ; RUN: grep globl %t | count 4
; RUN: grep -c weak %t | grep 1 ; RUN: grep weak %t | count 1
@bar = external global i32 @bar = external global i32
@foo1 = alias i32* @bar @foo1 = alias i32* @bar

View File

@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | \ ; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: opt -predsimplify -instcombine -simplifycfg | llvm-dis > %t ; RUN: opt -predsimplify -instcombine -simplifycfg | llvm-dis > %t
; RUN: grep -v declare %t | not grep fail ; RUN: grep -v declare %t | not grep fail
; RUN: grep -v declare %t | grep -c pass | grep 3 ; RUN: grep -v declare %t | grep pass | count 3
int %test1(int %x, int %y) { int %test1(int %x, int %y) {
entry: entry:

View File

@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | \ ; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: opt -predsimplify -instcombine -simplifycfg | llvm-dis | \ ; RUN: opt -predsimplify -instcombine -simplifycfg | llvm-dis | \
; RUN: grep -v declare | grep -c pass | grep 2 ; RUN: grep -v declare | grep pass | count 2
int %test(int %x, int %y) { int %test(int %x, int %y) {
entry: entry:

View File

@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | \ ; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: opt -predsimplify -instcombine -simplifycfg | llvm-dis > %t ; RUN: opt -predsimplify -instcombine -simplifycfg | llvm-dis > %t
; RUN: grep -v declare %t | not grep fail ; RUN: grep -v declare %t | not grep fail
; RUN: grep -v declare %t | grep -c pass | grep 4 ; RUN: grep -v declare %t | grep pass | count 4
void %test1(int %x) { void %test1(int %x) {
entry: entry:

View File

@ -1,6 +1,6 @@
; Test that the ExitInMainOptimization pass works correctly ; Test that the ExitInMainOptimization pass works correctly
; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \ ; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
; RUN: grep -c {ret i32 3} | grep 1 ; RUN: grep {ret i32 3} | count 1
; END. ; END.
declare void %exit(int) declare void %exit(int)