From patchwork Sun Oct 27 20:40:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 286366 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 081692C00C5 for ; Mon, 28 Oct 2013 07:40:57 +1100 (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:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; q=dns; s=default; b=nfXgevvOWHdpClb3HG d0/sE/2OtefFt9zwH7oCfoNPYyGIT8wZgKTqD9n/d3CQZ240wke4vo9/xbBtDz1e RvVtvM3A2aJYkz7BEXPtZHkm6vN/5gQ452TIXHCUk42/ZqCRs0gY6O2OeTC/RtHH CXVeRIif8u2Dwzw2tQYcLGE2M= 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:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; s=default; bh=zJ3PYCjifUls2jFipIbDZYod bfA=; b=LS5yCAVqqPpZk8Z/nBrK7vE86Nfmo8yNJlsNSYr4slxa7vJglpNWHxzz v6k7Ofjw3I0/EkwiNuqe+NECJkN6QhnTj0qglIm463U3sm4GY2tsvbnpsOqcICKt /P1on8N97mFvgMQKgTHXugNsXJse6H2RG2n2NjraTW14G32S/6k= Received: (qmail 2715 invoked by alias); 27 Oct 2013 20:40:52 -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 2705 invoked by uid 89); 27 Oct 2013 20:40:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 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-f169.google.com Received: from mail-ob0-f169.google.com (HELO mail-ob0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 27 Oct 2013 20:40:50 +0000 Received: by mail-ob0-f169.google.com with SMTP id uz6so2872763obc.0 for ; Sun, 27 Oct 2013 13:40:48 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.131.196 with SMTP id oo4mr438992obb.50.1382906448917; Sun, 27 Oct 2013 13:40:48 -0700 (PDT) Received: by 10.182.137.136 with HTTP; Sun, 27 Oct 2013 13:40:48 -0700 (PDT) In-Reply-To: References: Date: Sun, 27 Oct 2013 21:40:48 +0100 Message-ID: Subject: Re: [PATCH, i386]: Testcases for PR 58679 (Was: reverting a LRA change) From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Cc: Vladimir Makarov On Sun, Oct 27, 2013 at 9:39 PM, Uros Bizjak wrote: > I have committed a couple of testcases from the PR, the first was > actually fixed by [1], the second is a short testcase that failed > without the revert. > > 2013-10-27 Uros Bizjak > > PR target/58679 > * gcc.target/i386/pr58679-1.c: New test. > * gcc.target/i386/pr58679-2.c: Ditto. Now with the patch attached. Uros. Index: testsuite/gcc.target/i386/pr58679-1.c =================================================================== --- testsuite/gcc.target/i386/pr58679-1.c (revision 0) +++ testsuite/gcc.target/i386/pr58679-1.c (working copy) @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -mavx" } */ + +typedef struct { char a; long long b; } S; + +S foo (S x, S y) +{ + S z; + + z.a = 0; + z.b = x.b / y.b; + return z; +} Index: testsuite/gcc.target/i386/pr58679-2.c =================================================================== --- testsuite/gcc.target/i386/pr58679-2.c (revision 0) +++ testsuite/gcc.target/i386/pr58679-2.c (working copy) @@ -0,0 +1,7 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -mavx" } */ + +int f (long long a, long long b) +{ + return (a * b) >> 16; +}