Hello!

Attached patch enhances the testcase to also check for presence of MMX
registers on all 32bit x86 targets.

2014-05-17  Uros Bizjak  <ubiz...@gmail.com>

    * g++.dg/pr60969.C: Compile for all ilp32 x86 targets.
    (dg-options): Add -mfpmath=387.
    (dg-final): Check that no MMX registers are used.

Tested on x86-64-pc-linux-gnu {,-m32} and committed to mainline and 4.9 branch.

Uros.
Index: pr60969.C
===================================================================
--- pr60969.C   (revision 210549)
+++ pr60969.C   (working copy)
@@ -1,5 +1,5 @@
-/* { dg-do compile { target i?86-*-* } } */
-/* { dg-options "-O2 -ftree-vectorize -march=pentium4" } */
+/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
+/* { dg-options "-O2 -ftree-vectorize -march=pentium4 -mfpmath=387" } */
 
 struct A
 {
@@ -28,3 +28,5 @@
     }
   return x;
 }
+
+/* { dg-final { scan-assembler-not "%mm" } } */

Reply via email to