b8bc4f60c20a98b51056fbaa997e039218436bf1
[ghc.git] / testsuite / tests / codeGen / should_run / all.T
1 # Test +RTS -G1 here (it isn't tested anywhere else)
2 setTestOpts(unless(fast(), extra_ways(['g1'])))
3
4 test('cgrun001', normal, compile_and_run, [''])
5 test('cgrun002', normal, compile_and_run, [''])
6 test('cgrun003', normal, compile_and_run, [''])
7 test('cgrun004', normal, compile_and_run, [''])
8 test('cgrun005', normal, compile_and_run, [''])
9 test('cgrun006', normal, compile_and_run, [''])
10 test('cgrun007', normal, compile_and_run, [''])
11 test('cgrun008', normal, compile_and_run, [''])
12 test('cgrun009', normal, compile_and_run, [''])
13 test('cgrun010', normal, compile_and_run, [''])
14 test('cgrun011', normal, compile_and_run, [''])
15 test('cgrun012', normal, compile_and_run, [''])
16 test('cgrun013', normal, compile_and_run, [''])
17 test('cgrun014', normal, compile_and_run, [''])
18 test('cgrun015', normal, compile_and_run, [''])
19 test('cgrun016', exit_code(1), compile_and_run, [''])
20 test('cgrun017', normal, compile_and_run, [''])
21 test('cgrun018', normal, compile_and_run, [''])
22 test('cgrun019', normal, compile_and_run, [''])
23 test('cgrun020', normal, compile_and_run, [''])
24 test('cgrun021', normal, compile_and_run, [''])
25 test('cgrun022', normal, compile_and_run, [''])
26 test('cgrun024', normal, compile_and_run, [''])
27 test('cgrun025',
28      [reqlib('regex-compat'), extra_run_opts('cgrun025.hs'), exit_code(1)],
29      compile_and_run, ['-package regex-compat'])
30 test('cgrun026', normal, compile_and_run, [''])
31 test('cgrun027', normal, compile_and_run, [''])
32 test('cgrun028', normal, compile_and_run, [''])
33 test('cgrun031', normal, compile_and_run, [''])
34 test('cgrun032', normal, compile_and_run, [''])
35 test('cgrun033', normal, compile_and_run, [''])
36 test('cgrun034', normal, compile_and_run, [''])
37 test('cgrun035', normal, compile_and_run, [''])
38 test('cgrun036', normal, compile_and_run, [''])
39 test('cgrun037', normal, compile_and_run, [''])
40 test('cgrun038', normal, compile_and_run, [''])
41 test('cgrun039', normal, compile_and_run, [''])
42 test('cgrun040', normal, compile_and_run, [''])
43 test('cgrun043', normal, compile_and_run, [''])
44 test('cgrun044', normal, compile_and_run, [''])
45 test('cgrun045', exit_code(1), compile_and_run, [''])
46 test('cgrun046', normal, compile_and_run, [''])
47 test('cgrun047', normal, compile_and_run, [''])
48 test('cgrun048', normal, compile_and_run, [''])
49 test('cgrun049', normal, compile_and_run, ['-funbox-strict-fields'])
50 test('cgrun050', normal, compile_and_run, [''])
51 test('cgrun051', [exit_code(1)], compile_and_run, [''])
52 test('cgrun052', only_ways(['optasm']), compile_and_run, ['-funbox-strict-fields'])
53 test('cgrun053', normal, compile_and_run, [''])
54 test('cgrun054', normal, compile_and_run, [''])
55 test('cgrun055', normal, compile_and_run, [''])
56 test('cgrun056', normal, compile_and_run, [''])
57 test('cgrun057', [ only_ways(prof_ways),
58                    extra_run_opts('+RTS -xc') ], compile_and_run, [''])
59 test('cgrun058', normal, compile_and_run, [''])
60 test('cgrun059', exit_code(1), compile_and_run, [''])
61 test('cgrun060',
62      extra_run_opts('+RTS -K64k -RTS'),
63      compile_and_run, [''])
64 test('cgrun061', normal, compile_and_run, [''])
65 test('cgrun062', normal, compile_and_run, [''])
66 test('cgrun063', normal, compile_and_run, [''])
67 test('cgrun064', normal, compile_and_run, [''])
68 test('cgrun065', normal, compile_and_run, [''])
69 test('cgrun066', normal, compile_and_run, [''])
70 test('cgrun067', extra_clean(['Cgrun067A.hi', 'Cgrun067A.o']),
71      compile_and_run, [''])
72 test('cgrun068', reqlib('random'), compile_and_run, [''])
73 test('cgrun069', omit_ways(['ghci']), multi_compile_and_run,
74                  ['cgrun069', [('cgrun069_cmm.cmm', '')], ''])
75 test('cgrun070', normal, compile_and_run, [''])
76 test('cgrun071', normal, compile_and_run, [''])
77 test('cgrun072', normal, compile_and_run, [''])
78
79 test('T1852', normal, compile_and_run, [''])
80 test('T1861', extra_run_opts('0'), compile_and_run, [''])
81 test('T2080', normal, compile_and_run, [''])
82 test('T2838', normal, compile_and_run, [''])
83 test('T3207', normal, compile_and_run, [''])
84 test('T3561', normal, compile_and_run, [''])
85 test('T3677', extra_run_opts('+RTS -K8k -RTS'), compile_and_run, [''])
86 test('T4441', normal, compile_and_run, [''])
87 test('T5149', omit_ways(['ghci']), multi_compile_and_run,
88                  ['T5149', [('T5149_cmm.cmm', '')], ''])
89 test('T5129', normal, compile_and_run, [''])
90 test('T5626', exit_code(1), compile_and_run, [''])
91 test('T5747', when(arch('i386'), extra_hc_opts('-msse2')), compile_and_run, ['-O2'])
92 test('T5785', normal, compile_and_run, [''])
93 test('setByteArray', normal, compile_and_run, [''])
94
95 test('T6146', normal, compile_and_run, [''])
96 test('T5900', normal, compile_and_run, [''])
97 test('T7163', normal, compile_and_run, [''])
98
99 # T7319 now gives the same results in every 'way', so treat it as normal
100 test('T7319', exit_code(1), compile_and_run, [''])
101
102 # Gives different results when optimised, so restrict to just one way
103 #test('T7319', [ extra_ways(['prof']), only_ways(['prof']), exit_code(1),
104 #                req_profiling,
105 #                extra_hc_opts('-fprof-auto'),
106 #                extra_run_opts('+RTS -xc') ], compile_and_run, [''])
107
108 test('Word2Float32', unless(wordsize(32), skip), compile_and_run, [''])
109 test('Word2Float64', unless(wordsize(64), skip), compile_and_run, [''])
110
111 test('T7361', normal, compile_and_run, [''])
112 test('T7600', normal, compile_and_run, [''])
113 test('T8103', only_ways(['normal']), compile_and_run, [''])
114 test('T7953', reqlib('random'), compile_and_run, [''])
115 test('T8256', normal, compile_and_run, ['-dcore-lint -O1'])
116 test('T6084',normal, compile_and_run, ['-O2'])
117 test('CgStaticPointers', [when(doing_ghci(), extra_hc_opts('-fobject-code'))],
118      compile_and_run, [''])
119 test('StaticArraySize', [when(doing_ghci(), extra_hc_opts('-fobject-code'))],
120      compile_and_run, ['-O2'])
121 test('StaticByteArraySize', normal, compile_and_run, ['-O2'])
122 test('CopySmallArray', normal, compile_and_run, [''])
123 test('CopySmallArrayStressTest', reqlib('random'), compile_and_run, [''])
124 test('SizeOfSmallArray', normal, compile_and_run, [''])
125 test('T9001', normal, compile_and_run, [''])
126 test('T9013', omit_ways(['ghci']),  # ghci doesn't support unboxed tuples
127      compile_and_run, [''])
128 test('T9340', normal, compile_and_run, [''])
129 test('cgrun074', normal, compile_and_run, [''])
130 test('CmmSwitchTest32', unless(wordsize(32), skip), compile_and_run, [''])
131 test('CmmSwitchTest64', unless(wordsize(64), skip), compile_and_run, [''])
132 # Skipping WAY=ghci, because it is not broken.
133 test('T10245', [omit_ways(['ghci']), expect_broken(10246)], compile_and_run, [''])
134 test('T10246', expect_broken(10246), compile_and_run, [''])
135 test('T10414', [only_ways(['threaded2']), extra_ways(['threaded2']), req_smp],
136      compile_and_run, ['-feager-blackholing'])
137 test('T10521', normal, compile_and_run, [''])
138 test('T10521b', normal, compile_and_run, [''])
139 test('T10870', when(wordsize(32), skip), compile_and_run, [''])
140 test('PopCnt', omit_ways(['ghci']), multi_compile_and_run,
141                  ['PopCnt', [('PopCnt_cmm.cmm', '')], ''])
142 test('T12059', normal, compile_and_run, [''])