[InstCombine] Signed saturation patterns
[llvm-complete.git] / utils / lit / examples / many-tests / ManyTests.py
blobdf3edb55b85e99c8f0fca2f1decab168e34ec89b
1 from lit import Test
4 class ManyTests(object):
5 def __init__(self, N=10000):
6 self.N = N
8 def getTestsInDirectory(self, testSuite, path_in_suite, litConfig, localConfig):
9 for i in range(self.N):
10 test_name = "test-%04d" % (i,)
11 yield Test.Test(testSuite, path_in_suite + (test_name,), localConfig)
13 def execute(self, test, litConfig):
14 # Do a "non-trivial" amount of Python work.
15 sum = 0
16 for i in range(10000):
17 sum += i
18 return Test.PASS, ""