summaryrefslogtreecommitdiff
path: root/testsuite/tests/dph/smvm/dph-smvm.T
blob: f2bf31ab82f9b1ab5e092090144ad64a29d9a7d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41


testFile = 'nothing'
if config.platform.startswith('i386-'):
        testFile  = 'test-i386.dat'
        outFile   = 'result-i386.txt'

elif config.platform.startswith('x86_64-'):
        testFile  = 'test-x86_64.dat'
        outFile   = 'result-x86_64.txt'

elif config.platform.startswith('sparc-'):
        testFile  = 'test-sparc.dat'
        outFile   = 'result-sparc.txt'


if testFile != 'nothing':
 test   ('dph-smvm-copy'
        , [ outputdir('copy')
          , when(fast(), skip)
          , reqlib('dph-lifted-copy')
          , reqlib('dph-prim-par')
          , only_ways(['normal', 'threaded1', 'threaded2'])
          , extra_run_opts(testFile + " " + outFile)
          ]
        , multimod_compile_and_run
        , [ 'Main'
          , '-O0 -package dph-lifted-copy -package dph-prim-par'])

 test   ('dph-smvm-vseg'
        , [ outputdir('vseg')
          , when(fast(), skip)
          , reqlib('dph-lifted-vseg')
          , reqlib('dph-prim-par')
          , only_ways(['normal', 'threaded1', 'threaded2'])
          , extra_run_opts(testFile + " " + outFile)
          ]
        , multimod_compile_and_run
        , [ 'Main'
          , '-O0 -package dph-lifted-vseg -package dph-prim-par'])