[test][NFC] Use plain FileCheck in statepoint-stackmap-size.ll
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 15 Apr 2020 00:51:50 +0000 (20:51 -0400)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 15 Apr 2020 00:53:41 +0000 (20:53 -0400)
Summary:
The test in question uses a non-portable `grep -A` option in conjunction
with `wc -l`. `FileCheck` can be used to do the check without using
these extra utilities.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D78060

llvm/test/CodeGen/X86/statepoint-stackmap-size.ll

index a8757f3..55830f2 100644 (file)
@@ -1,7 +1,9 @@
-; RUN: llc  -verify-machineinstrs < %s | grep -F -A 10000 .llvm_stackmaps | wc -l | FileCheck %s
+; RUN: llc  -verify-machineinstrs < %s | FileCheck %s
 
 ; Without removal of duplicate entries, the size is 62 lines
-; CHECK: 50
+;      CHECK:  .section        .llvm_stackmaps,{{.*$}}
+; CHECK-NEXT:{{(.+$[[:space:]]){48}[[:space:]]}}
+;  CHECK-NOT:{{.|[[:space:]]}}
 
 target triple = "x86_64-pc-linux-gnu"