[llvm] cda006c - [test][NFC] Use plain FileCheck in statepoint-stackmap-size.ll

Hubert Tong via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 17:53:48 PDT 2020


Author: Hubert Tong
Date: 2020-04-14T20:53:41-04:00
New Revision: cda006cbc7a8cb4719efbc4171026ffb5cb1a09a

URL: https://github.com/llvm/llvm-project/commit/cda006cbc7a8cb4719efbc4171026ffb5cb1a09a
DIFF: https://github.com/llvm/llvm-project/commit/cda006cbc7a8cb4719efbc4171026ffb5cb1a09a.diff

LOG: [test][NFC] Use plain FileCheck in statepoint-stackmap-size.ll

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/statepoint-stackmap-size.ll b/llvm/test/CodeGen/X86/statepoint-stackmap-size.ll
index a8757f3f5ad6..55830f2c3113 100644
--- a/llvm/test/CodeGen/X86/statepoint-stackmap-size.ll
+++ b/llvm/test/CodeGen/X86/statepoint-stackmap-size.ll
@@ -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"
 


        


More information about the llvm-commits mailing list