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