From 95ac221a3a8c6856e206758657774cee5da453ff Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Sat, 17 May 2014 13:03:31 +0200 Subject: [PATCH] pr60969.C: Compile for all ilp32 x86 targets. * g++.dg/pr60969.C: Compile for all ilp32 x86 targets. (dg-options): Add -mfpmath=387. (dg-final): Check that no MMX registers are used. From-SVN: r210550 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/pr60969.C | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 682d9c7039c..c4007679cd3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-05-17 Uros Bizjak + + * g++.dg/pr60969.C: Compile for all ilp32 x86 targets. + (dg-options): Add -mfpmath=387. + (dg-final): Check that no MMX registers are used. + 2014-05-17 Andreas Schwab * gcc.target/ia64/visibility-1.c (variable_i): Add used attribute. diff --git a/gcc/testsuite/g++.dg/pr60969.C b/gcc/testsuite/g++.dg/pr60969.C index 3f8d4c5b959..bea0801d461 100644 --- a/gcc/testsuite/g++.dg/pr60969.C +++ b/gcc/testsuite/g++.dg/pr60969.C @@ -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 @@ foo (A &s, A &t, A &u, A &v, int y, int z) } return x; } + +/* { dg-final { scan-assembler-not "%mm" } } */