mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
99a08c0b07
; CHECK: [[VAR:[a-z]]] The problem was that to find the end of the regex var definition, it was simplistically looking for the next ]] and finding the incorrect one. A better approach is to count nesting of brackets (taking escaping into account). This way the brackets that are part of the regex can be discovered and skipped properly, and the ]] ending is detected in the right place. llvm-svn: 169109
14 lines
277 B
Plaintext
14 lines
277 B
Plaintext
// RUN: FileCheck -input-file %s %s
|
|
|
|
op1 r1
|
|
op2 r1, r2
|
|
; CHECK: op1 [[REG:r[0-9]]]
|
|
; CHECK-NEXT: op2 [[REG]]
|
|
|
|
op3 r16, r18, r21
|
|
op4 r30, r18, r21
|
|
; CHECK: op3 {{r[0-9]+}}, [[REGa:r[0-9]+]], [[REGb:r[0-9]+]]
|
|
; CHECK-NEXT: op4 {{r[0-9]+}}, [[REGa]], [[REGb]]
|
|
|
|
|