1// Test for referencing a variable defined on the same line
2// RUN: FileCheck -input-file %s %s
3
4op1 r1, r2, r1
5
6; CHECK: op1 [[REG:r[0-9]+]], {{r[0-9]+}}, [[REG]]
7
8op3 r1, r2, r1, r2
9
10; CHECK: op3 [[REG1:r[0-9]+]], [[REG2:r[0-9]+]], [[REG1]], [[REG2]]
11
12op4 g1, g2, g1
13
14; Test that parens inside the regex don't confuse FileCheck
15; CHECK: {{([a-z]+[0-9])+}} [[REG:g[0-9]+]], {{g[0-9]+}}, [[REG]]
16
17