<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Filecheck {{$}} doesn't delimit DAG range as expected"
href="https://bugs.llvm.org/show_bug.cgi?id=46634">46634</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Filecheck {{$}} doesn't delimit DAG range as expected
</td>
</tr>
<tr>
<th>Product</th>
<td>Test Suite
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>lit
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>paul_robinson@playstation.sony.com
</td>
</tr>
<tr>
<th>CC</th>
<td>daniel@zuster.org, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Re <a href="http://lists.llvm.org/pipermail/llvm-dev/2020-July/143168.html">http://lists.llvm.org/pipermail/llvm-dev/2020-July/143168.html</a>
trying to match the two metadata tags in this line, in either order:
%r1 = add %r2, %r3 !some-metadata !1, !some-other-metadata !2
I had thought that using this would work:
CHECK: %r1 = add %r2, %r3
CHECK-DAG: !some-metadata
CHECK-DAG: !some-other-metadata
CHECK: {{$}}
That is, I expected the {{$}} to constrain the DAG range to the
same line that matched the "add" instruction. But it doesn't.
The above checks will happily match this:
%r1 = add %r2, %r3 !some-metadata
foobar
!some-other-metadata
and `--dump-input=always -v` shows the {{$}} matching after the
second DAG, regardless of how many lines away that is.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>