summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-11-26 23:48:02 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-12-02 18:13:31 -0500
commit44c088631f2d14f25c9cefeee174db4576b4c5cc (patch)
treea3ec9288a2468c0f4294c9d828a22b16f2b4e835
parente98dad1bcd09e13988056310655c62b2afa512be (diff)
downloadhaskell-44c088631f2d14f25c9cefeee174db4576b4c5cc.tar.gz
testsuite: Specify expected word-size of machop tests
These generally expect a particular word size.
-rw-r--r--testsuite/tests/cmm/should_run/machops/all.T15
1 files changed, 8 insertions, 7 deletions
diff --git a/testsuite/tests/cmm/should_run/machops/all.T b/testsuite/tests/cmm/should_run/machops/all.T
index d705f331dd..a10500f7c8 100644
--- a/testsuite/tests/cmm/should_run/machops/all.T
+++ b/testsuite/tests/cmm/should_run/machops/all.T
@@ -1,11 +1,12 @@
setTestOpts(extra_files(['TestMachOp.hs']))
-def cmm_test(name):
- test(name, normal, multi_compile_and_run,
+def cmm_test(name, ws):
+ test(name,
+ [unless(wordsize(ws), skip), normal],
+ multi_compile_and_run,
['TestMachOp', [(name+'.cmm', '')], ''])
-cmm_test('T20626a')
-cmm_test('T20626b')
-cmm_test('T20638')
-cmm_test('T20634')
-cmm_test('MachOps1')
+cmm_test('T20626a', ws=64)
+cmm_test('T20626b', ws=64)
+cmm_test('T20638', ws=64)
+cmm_test('T20634', ws=64)