llvm.org GIT mirror llvm / e57343b
Fix handling of CHECK-DAG combined with CHECK-NOT Patch by Daniel Sanders. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187651 91177308-0d34-0410-b5e6-96231b3b80d8 Tim Northover 6 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2121
2222 ; CHECK-DAG: add [[REG1:r[0-9]+]], r1, r2
2323 ; CHECK-DAG: add [[REG2:r[0-9]+]], r3, r4
24 ; CHECK-NOT: xor
2425 ; CHECK-DAG: mul r5, [[REG1]], [[REG2]]
10121012 // CHECK-DAG, verify that there's no 'not' strings occurred in that
10131013 // region.
10141014 StringRef SkippedRegion = Buffer.substr(LastPos, MatchPos);
1015 size_t Pos = CheckNot(SM, SkippedRegion, NotStrings, VariableTable);
1016 if (Pos != StringRef::npos)
1015 if (CheckNot(SM, SkippedRegion, NotStrings, VariableTable))
10171016 return StringRef::npos;
10181017 // Clear "not strings".
10191018 NotStrings.clear();