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

Stuart Hastings stuart at apple.com
Wed Aug 4 08:34:08 PDT 2010


On Aug 4, 2010, at 7:17 AM, Dimitry Andric wrote:

> 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.

Patch applied.  Thank you!

stuart



More information about the llvm-commits mailing list