[llvm-commits] [PATCH] Fix backslash escape for call-imm.ll test

Dimitry Andric dimitry at andric.com
Wed Aug 4 07:17:17 PDT 2010


One of the tests in test/CodeGen/X86/call-imm.ll has:

; RUN: llc < %s -march=x86-64 | grep {call.*\*%rax}

It looks like this eventually runs grep with this command line:

grep call.**%rax

so it drops the backslash, probably due to "sh -c" invocation.  For some
reason, GNU grep accepts this regex, and even produces the expected
result, but at least one other grep complains "Invalid preceding regular
expression".

It looks like most other tests use \\ to pass a single backslash to grep
(or other test programs), so the attached patch does the same here.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: llvm-fix-call-imm-test-quoting.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100804/62da8205/attachment.ksh>


More information about the llvm-commits mailing list