diff mbox

patch to fix PR60969

Message ID CAFULd4YfXv55guVQnF8nZWx8WwmiLyCR1qH9T6trMXnRJn91rg@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak May 17, 2014, 11 a.m. UTC
Hello!

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

2014-05-17  Uros Bizjak  <ubizjak@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.
diff mbox

Patch

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" } } */