Revert "Batch merge"
[ghc.git] / testsuite / tests / perf / should_run / all.T
1 # T12791 and T5835 test that GHC uses top-level instances in places where using
2 # a locally given solution would produce worse code.
3 # See Note [Solving from instances when interacting Dicts]
4
5 test('T5835',
6      [collect_stats('max_bytes_used',10),
7        only_ways(['normal'])
8        ],
9      compile_and_run,
10      ['-O'])
11
12 test('T12791',
13      [collect_stats('max_bytes_used',10),
14        only_ways(['normal'])
15        ],
16      compile_and_run,
17      ['-O'])
18
19 # Tests that newArray/newArray_ is being optimised correctly
20
21 test('T10359',
22      [collect_stats('bytes allocated',5),
23       only_ways(['normal'])
24       ],
25      compile_and_run,
26      ['-O'])
27
28 test('T14955',
29      [collect_stats('bytes allocated',5),
30       only_ways(['normal'])
31       ],
32      multimod_compile_and_run,
33      ['T14955', '-O'])
34
35 # fortunately the values here are mostly independent of the wordsize,
36 # because the test allocates an unboxed array of doubles.
37 test('T3586',
38      [collect_stats('peak_megabytes_allocated',1),
39       collect_stats('bytes allocated', 5),
40       only_ways(['normal']),
41
42       # Use `+RTS -G1` for more stable residency measurements. Note [residency].
43       # Only 64-bit as we don't have a good 32-bit test environment at the moment
44       when(wordsize(64), extra_hc_opts('+RTS -G1 -RTS'))
45       ],
46      compile_and_run,
47      ['-O'])
48
49 test('T4830',
50      [collect_stats('bytes allocated',4),
51       only_ways(['normal'])
52       ],
53      compile_and_run,
54      ['-O2'])
55
56 test('T3245', [when(doing_ghci(), extra_hc_opts('-fobject-code'))],
57      compile_and_run, ['-O'])
58
59 # Test that bytestring reading/writing isn't over-allocating.  We had
60 # a bug in hGetBufNonBlocking in 6.13 that triggered this.
61 #
62 test('lazy-bs-alloc',
63      [extra_files(['../../numeric/should_run/arith011.stdout']),
64       collect_stats('peak_megabytes_allocated', 1),
65       collect_stats('bytes allocated',5),
66       only_ways(['normal']),
67       extra_run_opts('arith011.stdout'),
68       ignore_stdout,
69
70       # Use `+RTS -G1` for more stable residency measurements. Note [residency].
71       # Only 64-bit as we don't have a good 32-bit test environment at the moment
72       when(wordsize(64), extra_hc_opts('+RTS -G1 -RTS'))
73       ],
74      # use a suitably big file, without bloating the repo with a new one:
75      compile_and_run,
76      ['-O'])
77
78 test('T876',
79      [collect_stats('bytes allocated',5),
80       only_ways(['normal']),
81       extra_run_opts('10000')
82       ],
83      compile_and_run,
84      ['-O'])
85
86 # Get reproducible floating-point results on x86
87 if config.arch == 'i386':
88    sse2_opts = '-msse2'
89 else:
90    sse2_opts = ''
91
92 test('T4321',
93      omit_ways(['ghci']),
94      compile_and_run, ['-O ' + sse2_opts])
95
96 test('T3736', [], run_command, ['$MAKE -s --no-print-directory T3736'])
97 test('T3738',
98      [extra_clean(['T3738a.hi', 'T3738a.o']),
99       collect_stats('peak_megabytes_allocated', 0),
100       collect_stats('bytes allocated',8),
101       only_ways(['normal'])
102       ],
103      compile_and_run,
104      ['-O'])
105
106 test('MethSharing',
107      [collect_stats('peak_megabytes_allocated',  0),
108       collect_stats('bytes allocated',5),
109       only_ways(['normal'])
110       ],
111      compile_and_run,
112      ['-O'])
113 test('T2902', [], run_command, ['$MAKE -s --no-print-directory T2902'])
114 test('T149',
115      [ # expect_broken(149),
116        # working (2 Jul 2013, x86-64/Linux)
117       extra_clean(['T149_A',    'T149_B',
118                    'T149_A.hi', 'T149_B.hi',
119                    'T149_A.o',  'T149_B.o'])],
120      run_command,
121      ['$MAKE -s --no-print-directory T149'])
122
123 test('T5113',
124      [collect_stats('bytes allocated',5),
125       only_ways(['normal'])
126       ],
127      compile_and_run,
128      ['-O'])
129
130
131 test('T4978',
132      [collect_stats('bytes allocated',5),
133       only_ways(['normal'])
134       ],
135      compile_and_run,
136      ['-O2'])
137
138 test('T5205',
139      [collect_stats('bytes allocated',5),
140       only_ways(['normal', 'optasm'])
141       ],
142      compile_and_run,
143      [''])
144
145 test('T5549',
146      [collect_stats('bytes allocated',5),
147       only_ways(['normal'])
148       ],
149      compile_and_run,
150      ['-O'])
151
152 test('T4474a',
153      [collect_stats('bytes allocated',5),
154       only_ways(['normal'])
155       ],
156      compile_and_run,
157      ['-O'])
158 test('T4474b',
159      [collect_stats('bytes allocated',5),
160       only_ways(['normal'])
161       ],
162      compile_and_run,
163      ['-O'])
164 test('T4474c',
165      [collect_stats('bytes allocated',5),
166       only_ways(['normal'])
167       ],
168      compile_and_run,
169      ['-O'])
170
171 test('T5237',
172      [collect_stats('bytes allocated',5),
173      only_ways(['normal'])
174      ],
175     compile_and_run,
176     ['-O ' + sse2_opts])
177
178 test('T5536',
179      [collect_stats('bytes allocated',1),
180      extra_clean(['T5536.data']),
181      ignore_stdout,
182      only_ways(['normal'])
183      ],
184     compile_and_run,
185     ['-O'])
186
187 test('T7257',
188      [collect_stats('bytes allocated',10),
189       collect_stats('peak_megabytes_allocated',5),
190       only_ways(['normal'])
191      ],
192     compile_and_run, ['-O'])
193
194 test('Conversions',
195      [collect_stats('bytes allocated',3),
196       only_ways(['normal'])
197      ],
198     compile_and_run, ['-O -msse2'])
199
200 test('T7507', omit_ways(['ghci']), compile_and_run, ['-O'])
201 # For 7507, stack overflow is the bad case
202
203 test('T7436',
204      [collect_stats('max_bytes_used',4),
205       only_ways(['normal'])
206       ],
207      compile_and_run,
208      ['-O'])
209
210 test('T7797',
211       [collect_stats('bytes allocated',5),
212       extra_clean(['T7797a.hi', 'T7797a.o']),
213       only_ways(['normal'])
214       ],
215      compile_and_run,
216      ['-O'])
217
218 test('T7954',
219       [collect_stats('bytes allocated',10),
220       only_ways(['normal'])
221       ],
222      compile_and_run,
223      ['-O'])
224
225 test('T7850',
226      [collect_stats('peak_megabytes_allocated',10),
227       only_ways(['normal'])],
228      compile_and_run,
229      ['-O'])
230
231 test('T5949',
232      [collect_stats('bytes allocated',10),
233       only_ways(['normal'])],
234      compile_and_run,
235      ['-O'])
236
237 test('T4267',
238      [collect_stats('bytes allocated',10),
239       only_ways(['normal'])],
240       compile_and_run,
241       ['-O'])
242
243 test('T7619',
244      [collect_stats('bytes allocated',10),
245       only_ways(['normal'])],
246      compile_and_run,
247      ['-O'])
248
249 test('InlineArrayAlloc',
250      [collect_stats('bytes allocated',5),
251       only_ways(['normal'])],
252      compile_and_run,
253      ['-O2'])
254
255 test('InlineByteArrayAlloc',
256      [collect_stats('bytes allocated',5),
257       only_ways(['normal'])],
258      compile_and_run,
259      ['-O2'])
260
261 test('InlineCloneArrayAlloc',
262      [collect_stats('bytes allocated',5),
263       only_ways(['normal'])],
264      compile_and_run,
265      ['-O2'])
266
267 test('T9203',
268      [collect_stats('bytes allocated',5),
269       only_ways(['normal'])],
270      compile_and_run,
271      ['-O2'])
272
273 test('T9339',
274      [collect_stats('bytes allocated',5),
275       only_ways(['normal'])],
276      compile_and_run,
277      ['-O2 -fspec-constr-keen'])
278      # For the -fspec-constr-keen see Note [Making SpecConstr keener] in SpecConstr
279
280
281 test('T8472',
282      [collect_stats('bytes allocated',80),
283       only_ways(['normal'])],
284      compile_and_run,
285      ['-O2'])
286
287 test('T12996',
288      [collect_stats('bytes allocated',5),
289       only_ways(['normal'])],
290      compile_and_run,
291      ['-O2'])
292
293 test('T13001',
294      [collect_stats('bytes allocated',20),
295       only_ways(['normal'])],
296      compile_and_run,
297      ['-O2'])
298
299 test('T8763',
300      [collect_stats('bytes allocated', 20),
301       only_ways(['normal'])],
302      compile_and_run,
303      ['-O2'])
304
305 test('T12990',
306     [collect_stats('bytes allocated',5),
307      only_ways(['normal'])],
308     compile_and_run,
309     ['-O2'])
310
311 test('T13218',
312     [collect_stats('bytes allocated',5),
313      collect_stats('max_bytes_used',10),
314      only_ways(['normal'])],
315     compile_and_run,
316     ['-O'])
317
318 test('DeriveNull',
319     [collect_stats('bytes allocated',5),
320      only_ways(['normal'])],
321     compile_and_run,
322     ['-O'])
323
324 test('DeriveNullTermination', normal, compile_and_run, [''])
325
326 test('T13623',
327     [collect_stats('bytes allocated',10),
328      only_ways(['normal'])],
329     compile_and_run,
330     ['-O2'])
331
332 test('T14052',
333      [collect_compiler_stats('bytes allocated',15)],
334      ghci_script,
335      ['T14052.script'])
336
337 test('T14936',
338      [collect_stats('bytes allocated',10)],
339      compile_and_run,
340      ['-O2'])
341
342 test('T15226',
343     [collect_stats('bytes allocated',5),
344      only_ways(['normal'])],
345     compile_and_run,
346     ['-O'])
347
348 test('T15226a',
349     [collect_stats('bytes allocated',5),
350      only_ways(['normal'])],
351     compile_and_run,
352     ['-O'])
353
354 test('T15263',
355     [collect_stats('bytes allocated', 4),
356      only_ways(['normal'])],
357     compile_and_run,
358     ['-O'])
359
360 test('T15426',
361     [collect_stats('bytes allocated', 20),
362     only_ways(['normal'])],
363     compile_and_run,
364     ['-O2'])
365
366 test('T15578',
367     [collect_stats('bytes allocated', 5),
368      only_ways(['normal'])],
369     compile_and_run,
370     ['-O2'])