Use msse2 in Conversions test (See #8195)
[ghc.git] / testsuite / tests / perf / should_run / all.T
index a8ea003..01d358b 100644 (file)
@@ -49,6 +49,17 @@ test('lazy-bs-alloc',
      compile_and_run,
      ['-O'])
 
+test('T876',
+     [stats_num_field('bytes allocated',
+          [(wordsize(64), 1263712 , 5),
+              # 2013-02-14: 1263712 (x86_64/Linux)
+           (wordsize(32), 663712, 5)]),
+      only_ways(['normal']),
+      extra_run_opts('10000')
+      ],
+     compile_and_run,
+     ['-O'])
+
 # Get reproducible floating-point results on x86
 if config.arch == 'i386':
    sse2_opts = '-msse2'
@@ -80,7 +91,7 @@ test('T3738',
 test('MethSharing',
      [stats_num_field('peak_megabytes_allocated', (1, 0)),
                                  # expected value: 1 (amd64/Linux)
-      stats_num_field('bytes allocated', 
+      stats_num_field('bytes allocated',
                       [(wordsize(32), 360940756, 5),
                     # expected value: 2685858140 (x86/OS X)
                           # expected: 360940756 (x86/Linux)
@@ -101,7 +112,8 @@ test('T2902',
      run_command,
      ['$MAKE -s --no-print-directory T2902'])
 test('T149',
-     [expect_broken(149),
+     [ # expect_broken(149),
+       # working (2 Jul 2013, x86-64/Linux)
       extra_clean(['T149_A',    'T149_B',
                    'T149_A.hi', 'T149_B.hi',
                    'T149_A.o',  'T149_B.o'])],
@@ -152,30 +164,27 @@ test('T5549',
 
 test('T4474a',
      [stats_num_field('bytes allocated',
-                      [(wordsize(32), 1879095912, 5),
-                    # expected value: 1879095912 (i386/OSX)
-                       (wordsize(64), 3766493912, 5)]),
-                    # expected value: 3766493912 (amd64/Linux)
+                      [(wordsize(32), 2405242767, 5),
+                       (wordsize(64), 4831890304, 5)]),
+                    # expected value: 4831890304 (amd64/OSX)
       only_ways(['normal'])
       ],
      compile_and_run,
      ['-O'])
 test('T4474b',
      [stats_num_field('bytes allocated',
-                      [(wordsize(32), 1879095912, 5),
-                    # expected value: 1879095912 (i386/OSX)
-                       (wordsize(64), 3766493912, 5)]),
-                    # expected value: 3766493912 (amd64/Linux)
+                      [(wordsize(32), 2405242767, 5),
+                       (wordsize(64), 4831890304, 5)]),
+                    # expected value: 4831890304 (amd64/OSX)
       only_ways(['normal'])
       ],
      compile_and_run,
      ['-O'])
 test('T4474c',
      [stats_num_field('bytes allocated',
-                      [(wordsize(32), 1879095912, 5),
-                    # expected value: 1879095912 (i386/OSX)
-                       (wordsize(64), 3766493912, 5)]),
-                    # expected value: 3766493912 (amd64/Linux)
+                      [(wordsize(32), 2405242767, 5),
+                       (wordsize(64), 4831890304, 5)]),
+                    # expected value: 4831890304 (amd64/OSX)
       only_ways(['normal'])
       ],
      compile_and_run,
@@ -236,7 +245,7 @@ test('Conversions',
 
       only_ways(['normal'])
      ],
-    compile_and_run, ['-O'])
+    compile_and_run, ['-O -msse2'])
 
 test('T7507', omit_ways(['ghci']), compile_and_run, ['-O'])
 # For 7507, stack overflow is the bad case
@@ -253,3 +262,32 @@ test('T7436',
       ],
      compile_and_run,
      ['-O'])
+
+test('T7797',
+      [stats_num_field('bytes allocated',
+                      [(wordsize(32), 360940756, 5),
+                    # expected value: 2685858140 (x86/OS X)
+                          # expected: 360940756 (x86/Linux)
+                       (wordsize(64), 480050944, 5)]),
+                          # expected: 480050944 (amd64/Linux)
+      extra_clean(['T7797a.hi', 'T7797a.o']),
+      only_ways(['normal'])
+      ],
+     compile_and_run,
+     ['-O'])
+
+test('T7954',
+      [stats_num_field('bytes allocated',
+                      [(wordsize(32), 1380051408, 10),
+                       (wordsize(64), 2720051528, 10)]),
+      only_ways(['normal'])
+      ],
+     compile_and_run,
+     ['-O'])
+
+test('T7850',
+     [stats_num_field('peak_megabytes_allocated', (4, 1)),
+      only_ways(['normal'])],
+     compile_and_run,
+     ['-O'])
+