[llvm] r342430 - Work around grep vs. CRLF issue in Thumb2 test by matching excess whitespace

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 17 17:04:29 PDT 2018


Author: rnk
Date: Mon Sep 17 17:04:29 2018
New Revision: 342430

URL: http://llvm.org/viewvc/llvm-project?rev=342430&view=rev
Log:
Work around grep vs. CRLF issue in Thumb2 test by matching excess whitespace

There seems to be a separate command line tokenization issue that
prevents just ':\s*$' from working, since then the pattern argument
isn't quoted, and grep.exe misinterprets the backslash somehow.

Modified:
    llvm/trunk/test/CodeGen/Thumb2/2010-01-06-TailDuplicateLabels.ll

Modified: llvm/trunk/test/CodeGen/Thumb2/2010-01-06-TailDuplicateLabels.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Thumb2/2010-01-06-TailDuplicateLabels.ll?rev=342430&r1=342429&r2=342430&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Thumb2/2010-01-06-TailDuplicateLabels.ll (original)
+++ llvm/trunk/test/CodeGen/Thumb2/2010-01-06-TailDuplicateLabels.ll Mon Sep 17 17:04:29 2018
@@ -1,4 +1,4 @@
-; RUN: llc -relocation-model=pic < %s | grep ":$" | sort | uniq -d | count 0
+; RUN: llc -relocation-model=pic < %s | grep -E ': ?\s*$' | sort | uniq -d | count 0
 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32"
 target triple = "thumbv7-apple-darwin10"
 




More information about the llvm-commits mailing list