<div dir="auto">Thanks that helps.<div dir="auto">I was unclear about term "input-file" used in doc. Now it is clear with ur example.</div><div dir="auto"><br></div><div dir="auto">Mahesh</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Apr 1, 2018, 11:35 PM  <<a href="mailto:paul.robinson@sony.com">paul.robinson@sony.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_722031271006278898WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">See:
<a href="http://llvm.org/docs/CommandGuide/FileCheck.html" target="_blank" rel="noreferrer">http://llvm.org/docs/CommandGuide/FileCheck.html</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It is not required to pipe output to FileCheck; there is the --input-file option, which allows you to run FileCheck on an existing disk file.  Something like
 this:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">FileCheck %s --input-file a.rpt --check-prefix=A<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">FileCheck %s --input-file b.rpt --check-prefix=B<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">FileCheck %s --input-file c.rpt --check-prefix=C<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><a name="m_722031271006278898__MailEndCompose" rel="noreferrer"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If there are common parts to each .rpt file that you want to check, you can write those checks with another prefix and use the --check-prefixes
 option to specify all the ones that are appropriate to each run of FileCheck.<u></u><u></u></span></a></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I am sure you can find some existing tests with examples of these patterns to give you ideas how to write your test.  If you still have questions please feel
 free to ask them.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">--paulr<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> llvm-dev [mailto:<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev-bounces@lists.llvm.org</a>]
<b>On Behalf Of </b>Mahesh Attarde via llvm-dev<br>
<b>Sent:</b> Saturday, March 31, 2018 6:45 AM<br>
<b>To:</b> llvm-dev<br>
<b>Subject:</b> [llvm-dev] Writing tests with Filecheck without emitting output to stdin<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Hello  <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> I have pass operating on  bitcode file which produces more than one equivalent representation.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">opt --my-pass <%s | Filecheck  %s<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">--my-pass generates  files a.rpt b.rpt c.rpt . How do i write test without writing all 3 files to stdin.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have considered CHECK-LABEL for each. it creates bulky checks.<br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Mahesh<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>

</blockquote></div>