From patchwork Sat May 17 11:00:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 349866 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8889D14008A for ; Sat, 17 May 2014 21:01:05 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=b2y8WDFww5SYRT3Ih/+HtrGZZx/Zno9hGQDGjERL8Z7 nE5R/UGu9ZDqAG6fAaCSv5N4kUW7scfZM+qKn01SNzF6FmHqVXlK/ACXE1v55VWi j5nWCAJwZBc/Z3pAc+tSXaftaegXGJ4lkIuGQRA/y8h958TsFF0D0wC3JgLNmCfM = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; s=default; bh=sVHT2EtkZCkgDiaI33PLt6Anb8A=; b=fpu4fnrw7NBq2vsNA zpsvf0DOan0vLui0rN4E5f5PveSOXZyfR/7POmh4zzM9fPdX5aj08vsD/uyGi47R 20rhw/XAVp2FMmxSjp/tNOj2TYq15CzIG0dK85F8BSdQJkrGS8hxL+BJ6PQWBEeJ 1f5pxeVPHrBKEHZPQSp2PohinU= Received: (qmail 14392 invoked by alias); 17 May 2014 11:00:58 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 14379 invoked by uid 89); 17 May 2014 11:00:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f173.google.com Received: from mail-ob0-f173.google.com (HELO mail-ob0-f173.google.com) (209.85.214.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 17 May 2014 11:00:56 +0000 Received: by mail-ob0-f173.google.com with SMTP id wm4so4118116obc.4 for ; Sat, 17 May 2014 04:00:54 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.125.161 with SMTP id mr1mr23270731obb.47.1400324454522; Sat, 17 May 2014 04:00:54 -0700 (PDT) Received: by 10.182.89.229 with HTTP; Sat, 17 May 2014 04:00:54 -0700 (PDT) Date: Sat, 17 May 2014 13:00:54 +0200 Message-ID: Subject: Re: patch to fix PR60969 From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Cc: Vladimir Makarov , "H.J. Lu" Hello! Attached patch enhances the testcase to also check for presence of MMX registers on all 32bit x86 targets. 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. 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" } } */