1; Tests basic functionality of RangeSpec matching. Makes use of the fact that 2; "-verbose=status" prints the sequence number, and "-test-status" can suppress 3; this output. Note that seq=2 is the first sequence number for functions. 4 5; REQUIRES: allow_dump 6 7define internal void @Func2() { ret void } 8define internal void @Func3() { ret void } 9define internal void @Func4() { ret void } 10define internal void @Func5() { ret void } 11define internal void @Func6() { ret void } 12define internal void @Func7() { ret void } 13define internal void @Func8() { ret void } 14define internal void @Func9() { ret void } 15define internal void @Func10() { ret void } 16define internal void @Func11() { ret void } 17 18; A few tests that include everything. 19; RUN: %p2i -i %s -o /dev/null --args -verbose status -threads=0 \ 20; RUN: -test-status=: \ 21; RUN: | FileCheck %s --check-prefix=TEST1 22; RUN: %p2i -i %s -o /dev/null --args -verbose status -threads=0 \ 23; RUN: -test-status=2: \ 24; RUN: | FileCheck %s --check-prefix=TEST1 25; RUN: %p2i -i %s -o /dev/null --args -verbose status -threads=0 \ 26; RUN: -test-status=:20 \ 27; RUN: | FileCheck %s --check-prefix=TEST1 28; RUN: %p2i -i %s -o /dev/null --args -verbose status -threads=0 \ 29; RUN: -test-status=-xxx \ 30; RUN: | FileCheck %s --check-prefix=TEST1 31; TEST1: seq=2 32; TEST1: seq=3 33; TEST1: seq=4 34; TEST1: seq=5 35; TEST1: seq=6 36; TEST1: seq=7 37; TEST1: seq=8 38; TEST1: seq=9 39; TEST1: seq=10 40; TEST1: seq=11 41 42; Several ways of expressing 3+4+5+6 43; RUN: %p2i -i %s -o /dev/null --args -verbose status -threads=0 \ 44; RUN: -test-status=3:7 \ 45; RUN: | FileCheck %s --check-prefix=TEST2 46; RUN: %p2i -i %s -o /dev/null --args -verbose status -threads=0 \ 47; RUN: -test-status=3:6,6 \ 48; RUN: | FileCheck %s --check-prefix=TEST2 49; RUN: %p2i -i %s -o /dev/null --args -verbose status -threads=0 \ 50; RUN: -test-status=5,3:5,6 \ 51; RUN: | FileCheck %s --check-prefix=TEST2 52; RUN: %p2i -i %s -o /dev/null --args -verbose status -threads=0 \ 53; RUN: -test-status=3:9,-7: \ 54; RUN: | FileCheck %s --check-prefix=TEST2 55; RUN: %p2i -i %s -o /dev/null --args -verbose status -threads=0 \ 56; RUN: -test-status=3:9,-Func7,-Func8 \ 57; RUN: | FileCheck %s --check-prefix=TEST2 58; TEST2-NOT: seq=2 59; TEST2: seq=3 60; TEST2: seq=4 61; TEST2: seq=5 62; TEST2: seq=6 63; TEST2-NOT: seq=7 64; TEST2-NOT: seq=8 65; TEST2-NOT: seq=9 66; TEST2-NOT: seq=10 67; TEST2-NOT: seq=11 68; TEST2-NOT: seq=12 69