all.T 9.13 KB
Newer Older
1 2 3
test('simpl001', normal, compile, [''])
test('simpl002', normal, compile, [''])
test('simpl003', normal, compile, [''])
4
test('simpl004', normal, compile, [''])
5
test('simpl005', normal, compile, [''])
6

7 8
# Missing:
# test('simpl006', normal, compile, [''])
9

10
test('simpl007', normal, compile, [''])
11
# Missing: simpl008
12
test('simpl009', normal, compile, [''])
13
test('simpl010', normal, compile, [''])
14
test('simpl011', normal, compile, [''])
15
test('simpl012', normal, compile, [''])
16
test('simpl013', normal, compile, [''])
17
test('simpl014', normal, compile, [''])
18
test('simpl016', normal, compile, ['-dsuppress-uniques'])
19
test('simpl017', normal, compile_fail, [''])
20
test('simpl018', normal, compile, [''])
chak@cse.unsw.edu.au.'s avatar
chak@cse.unsw.edu.au. committed
21
test('simpl019', normal, compile, [''])
22
test('simpl020', [extra_files(['Simpl020_A.hs'])], multimod_compile, ['simpl020', '-v0'])
23

Simon Peyton Jones's avatar
Simon Peyton Jones committed
24
test('simpl-T1370', normal, compile, [''])
simonpj's avatar
simonpj committed
25
test('T2520', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
26

ian@well-typed.com's avatar
ian@well-typed.com committed
27
test('spec001', when(fast(), skip), compile, [''])
28
test('spec002', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
29
test('spec003', normal, compile, [''])
30

Simon Peyton Jones's avatar
Simon Peyton Jones committed
31
test('rule1', normal, compile, [''])
32
test('rule2', only_ways(['optasm']), compile, ['-dsuppress-uniques'])
33
test('T7162', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
34

35
test('dfun-loop', normal, compile, [''])
36
test('strict-float', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
37
test('T3118', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
38
test('T4203', normal, compile, [''])
39

40 41
# With -prof -fvia-C, this test makes gcc go out to lunch, and the
# testsuite driver times out.
ian@well-typed.com's avatar
ian@well-typed.com committed
42
test('T3016', when(fast(), skip), compile, [''])
Ian Lynagh's avatar
Ian Lynagh committed
43

Ian Lynagh's avatar
Ian Lynagh committed
44 45
test('T1647', normal, compile, ['-fdicts-strict -dcore-lint'])

46
test('T3234',
47
     only_ways(['optasm']),
48
     compile,
49
     ['-ddump-simpl-stats -dsuppress-uniques'])
50

daniel.is.fischer's avatar
daniel.is.fischer committed
51 52
test('T3717', only_ways(['optasm']),
              compile,
53
              ['-ddump-simpl -dsuppress-uniques'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
54

daniel.is.fischer's avatar
daniel.is.fischer committed
55 56
test('spec-inline', only_ways(['optasm']),
              	    compile,
57
              	    ['-O2 -ddump-simpl -dsuppress-uniques'])
daniel.is.fischer's avatar
daniel.is.fischer committed
58 59
test('T4908', only_ways(['optasm']),
              compile,
Simon Peyton Jones's avatar
Simon Peyton Jones committed
60
              ['-O2 -ddump-simpl -dsuppress-uniques'])
61

62
test('T4930', only_ways(['optasm']),
daniel.is.fischer's avatar
daniel.is.fischer committed
63
              compile,
Simon Peyton Jones's avatar
Simon Peyton Jones committed
64 65
              ['-O -ddump-simpl -dsuppress-uniques'])

66
test('T3055', [], run_command, ['$MAKE -s --no-print-directory T3055'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
67

Simon Peyton Jones's avatar
Simon Peyton Jones committed
68 69 70 71 72
test('T4306',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T4306'])

73 74 75 76 77
test('T4201',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T4201'])

Simon Peyton Jones's avatar
Simon Peyton Jones committed
78
test('T3772',
daniel.is.fischer's avatar
daniel.is.fischer committed
79
#      only_ways(['optasm']),
Simon Peyton Jones's avatar
Simon Peyton Jones committed
80 81
     extra_clean(['T3772_A.hi', 'T3772_A.o']),
     run_command, ['$MAKE -s --no-print-directory T3772'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
82

83 84
test('EvalTest',
     normal,
daniel.is.fischer's avatar
daniel.is.fischer committed
85
     run_command,
86 87
     ['$MAKE -s --no-print-directory EvalTest'])

88
test('T3831', normal, compile, [''])
89
test('T4345', normal, compile, [''])
90
test('T4398', normal, compile, ['-dsuppress-uniques'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
91

92
test('T4903', [], run_command, ['$MAKE -s --no-print-directory T4903'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
93

94
test('T4918', [], run_command, ['$MAKE -s --no-print-directory T4918'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
95

Simon Peyton Jones's avatar
Simon Peyton Jones committed
96 97 98 99
# This test flips too and fro about whether it passes
# I'm not sure why it is so delicate, but it greps the
# result of -ddump-simpl, which is never advertised to
# be very stable
Simon Peyton Jones's avatar
Simon Peyton Jones committed
100
test('T4945',
lukemaurer's avatar
lukemaurer committed
101
     normal,
Simon Peyton Jones's avatar
Simon Peyton Jones committed
102 103
     run_command,
     ['$MAKE -s --no-print-directory T4945'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
104 105 106 107 108

test('T4957',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T4957'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
109 110 111 112 113

test('T5168',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T5168'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
114 115

test('T5329', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
116
test('T5303', reqlib('mtl'), compile, [''])   # Coercion-optimiation test
Simon Peyton Jones's avatar
Simon Peyton Jones committed
117 118 119
test('T5342', normal, compile, [''])   # Lint error with -prof
test('T5359a', normal, compile, [''])  # Lint error with -O (OccurAnal)
test('T5359b', normal, compile, [''])  # Lint error with -O (OccurAnal)
daniel.is.fischer's avatar
daniel.is.fischer committed
120
test('T5458', normal, compile, [''])
121
test('simpl021', [extra_files(['Simpl021A.hs', 'Simpl021B.hs'])], run_command, ['$MAKE -s --no-print-directory simpl021'])
Ian Lynagh's avatar
Ian Lynagh committed
122
test('T5327', normal, run_command, ['$MAKE -s --no-print-directory T5327'])
123
test('T5615', normal, run_command, ['$MAKE -s --no-print-directory T5615'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
124
test('T5623', normal, run_command, ['$MAKE -s --no-print-directory T5623'])
125
test('T13155', normal, run_command, ['$MAKE -s --no-print-directory T13155'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
126 127 128 129
test('T5658b',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T5658b'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
130 131 132 133
test('T5776',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T5776'])
134
test('T4138', [], run_command, ['$MAKE -s --no-print-directory T4138'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
135
test('T7088', normal, compile, [''])
136
test('T6082-RULE', normal, compile, [''])
137
test('T7165', [], run_command, ['$MAKE -s --no-print-directory T7165'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
138
test('T7287', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
139
test('T7360', only_ways(['optasm']), compile, ['-ddump-simpl -dsuppress-uniques'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
140 141 142 143
test('T5366',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T5366'])
144
test('T7796', [], run_command, ['$MAKE -s --no-print-directory T7796'])
145
test('T5550', omit_ways(prof_ways), compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
146
test('T7865', normal, run_command, ['$MAKE -s --no-print-directory T7865'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
147
test('T7785', only_ways(['optasm']), compile, ['-ddump-rules'])
148
test('T7702', 
149 150
     [extra_files(['T7702plugin']),
      pre_cmd('$MAKE -s --no-print-directory -C T7702plugin package.T7702 TOP={top}'),
151 152 153 154 155 156 157 158
      clean_cmd('$MAKE -s --no-print-directory -C T7702plugin clean.T7702'), 
      # we say 18mb peak allocated +/- 70% because other compiler flags have 
      # a large effect on allocation which is hard to separate from the 
      # allocation done by the plugin... but a regression allocates > 90mb 
      compiler_stats_num_field('peak_megabytes_allocated',
          [(wordsize(32), 18, 70), (wordsize(64), 18, 70)]) 
     ], 
     compile, 
159
     ['-v0 -package-db T7702plugin/pkg.T7702/local.package.conf -fplugin T7702Plugin -package T7702plugin ' + config.plugin_way_flags])
160

Simon Peyton Jones's avatar
Simon Peyton Jones committed
161
test('T7995',
162 163 164
     # RULE doesn't seem to fire unless optimizations are turned on.
     # This seems reasonable, so I've required it for the test. -- EZY 20130720
     only_ways(['optasm']),
Simon Peyton Jones's avatar
Simon Peyton Jones committed
165 166 167
     run_command,
     ['$MAKE -s --no-print-directory T7995'])

Simon Peyton Jones's avatar
Simon Peyton Jones committed
168
test('T8196', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
169
test('T8221b', normal, compile, [''])
170
test('T8221', [], run_command, ['$MAKE -s --no-print-directory T8221'])
171
test('T8274', normal, run_command, ['$MAKE -s --no-print-directory T8274'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
172
test('T8329', only_ways(['optasm']), multimod_compile, ['T8329','-v0 -O'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
173 174 175 176
test('T5996',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T5996'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
177
test('T8537', normal, compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
178
test('T8832',
179
     normal,
Simon Peyton Jones's avatar
Simon Peyton Jones committed
180
     run_command,
181 182
     ['$MAKE -s --no-print-directory T8832 T8832_WORDSIZE_OPTS=' +
      ('-DT8832_WORDSIZE_64' if wordsize(64) else '')])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
183
test('T8848', only_ways(['optasm']), compile, ['-ddump-rule-firings -dsuppress-uniques'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
184
test('T8848a', only_ways(['optasm']), compile, ['-ddump-rules'])
185
test('T8331', only_ways(['optasm']), compile, ['-ddump-rules'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
186
test('T6056', only_ways(['optasm']), multimod_compile, ['T6056', '-v0 -ddump-rule-firings'])
187
test('T9400', only_ways(['optasm']), compile, ['-O0 -ddump-simpl -dsuppress-uniques'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
188 189
test('T9583', only_ways(['optasm']), compile, [''])
test('T9565', only_ways(['optasm']), compile, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
190
test('T5821', only_ways(['optasm']), compile, [''])
Joachim Breitner's avatar
Joachim Breitner committed
191
test('T10176', only_ways(['optasm']), compile, [''])
192
test('T10180', only_ways(['optasm']), compile, [''])
193
test('T10602', only_ways(['optasm']), multimod_compile, ['T10602','-v0'])
194
test('T10627', only_ways(['optasm']), compile, [''])
195
test('T10181', [expect_broken(10181), only_ways(['optasm'])], compile, [''])
196
test('T10083',
197
     normal,
198 199
     run_command,
     ['$MAKE -s --no-print-directory T10083'])
200
test('T10689', normal, compile, [''])
201 202 203 204
test('T11155',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T11155'])
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
205
test('T11232', normal, compile, ['-O2'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
206
test('T11562', normal, compile, ['-O2'])
207
test('T11742', normal, compile, ['-O2'])
208
test('T11644', normal, compile, ['-O2'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
209 210 211 212
test('T3990',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T3990'])
Edward Z. Yang's avatar
Edward Z. Yang committed
213

214
test('T12076', [], multimod_compile, ['T12076', '-v0'])
215 216
test('T12076lit', normal, compile, ['-O'])
test('T12076sat', normal, compile, ['-O'])
217
test('T12212', normal, compile, ['-O'])
218 219

test('noinline01', only_ways(['optasm']), compile, ['-ddump-stg -dsuppress-uniques -O'])
220
test('par01', only_ways(['optasm']), compile, ['-ddump-prep -dsuppress-uniques -O2'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
221
test('T12776', normal, compile, ['-O2'])
222 223 224 225
test('T9509',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T9509'])
226 227 228 229
test('T12603',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T12603'])
Sylvain Henry's avatar
Sylvain Henry committed
230
test('T12877', normal, run_command, ['$MAKE -s --no-print-directory T12877'])
231
test('T13027', normal, compile, [''])
232 233 234 235
test('T13025',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T13025'])
236
test('T13143', normal, compile, ['-O -ddump-simpl -dsuppress-uniques'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
237
test('T13156', normal, run_command, ['$MAKE -s --no-print-directory T13156'])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
238
test('T11444', normal, compile, [''])
239 240 241 242
test('str-rules',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory str-rules'])
243
test('T13170', only_ways(['optasm']), compile, ['-dcore-lint'])
244 245 246 247
test('T13317',
     normal,
     run_command,
     ['$MAKE -s --no-print-directory T13317'])
Ben Gamari's avatar
Ben Gamari committed
248
test('T13340', expect_broken(13340), run_command, ['$MAKE -s --no-print-directory T13340'])
249
test('T13338', only_ways(['optasm']), compile, ['-dcore-lint'])