[PATCH] D78060: [test][NFC] Use plain FileCheck in statepoint-stackmap-size.ll
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 15:15:34 PDT 2020
hubert.reinterpretcast created this revision.
hubert.reinterpretcast added reviewers: reames, thakis, daltenty, jasonliu.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78060
Files:
llvm/test/CodeGen/X86/statepoint-stackmap-size.ll
Index: llvm/test/CodeGen/X86/statepoint-stackmap-size.ll
===================================================================
--- llvm/test/CodeGen/X86/statepoint-stackmap-size.ll
+++ 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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78060.257124.patch
Type: text/x-patch
Size: 652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200413/97ed1201/attachment.bin>
More information about the llvm-commits
mailing list