[llvm-dev] [RFC] Compiled regression tests. (original) (raw)

David Greene via llvm-dev llvm-dev at lists.llvm.org
Mon Jul 6 06:55:09 PDT 2020


Michael Kruse via llvm-dev <llvm-dev at lists.llvm.org> writes:

Would this not work?

CHECK-SAME: ![[ACCESSGROUPINNER:[0-9]+]] CHECK-SAME: ![[ACCESSGROUPOUTER:[0-9]+]] I don't think CHECK-SAME is sensitive to order within the line. This works for me in my metadata tests but maybe I've just been lucky. AFAIU this will assume ACCESSGROUPINNER to appear before ACCESSGROUPOUTER since CHECK-SAME will continue matching at the column where the previous match stopped, thus have the same result as written in the same line. If CHECK-SAME starts over at the beginning of the line ACCESSGROUPOUTER/ACCESSGROUPINNER will both match the same.

Is the behavior of CHECK-SAME documented anywhere? It's not on the main FileCheck web page. I assumed it started over from the beginning of the line but now I'm not sure.

          -David


More information about the llvm-dev mailing list