From patchwork Tue Jun 25 16:53:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 254248 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 CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id D7DEE2C0082 for ; Wed, 26 Jun 2013 02:53:57 +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:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=hAIq1b1ES2QR2q7RI/E42tLGjBjo/kGflBF87BNhOwfjeRciBPLO5 OIAjTToFs36FyA4IKBJHHEh5bMisOwmQvio1iNJsBTd2BqTjPSl3Dd/CBys+cFag 7YI6+EntjQlPC1J3vP1Qn2IA1sXQdEIsb5OBJCFiBjLp1AK5o3BVyE= 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:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=2c8i2assgCWjMYSYDtAN24FCylI=; b=anhuxmN9aelu/xfVzlyN au3QIEUX7h8dm9i1BhYAMK3ZQodsIUHo4EVLGT4bDAeWHoULSvUEyEOXDu9SfWa3 LWKCb0QBOf7uxQn5gpUxQUOVsTfjqywc+tn0uylJ57W/bMZpqnPJvAo3Ln9CuOrI 2siuTxIM445++ODBsFB62W4= Received: (qmail 11011 invoked by alias); 25 Jun 2013 16:53:51 -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 10999 invoked by uid 89); 25 Jun 2013 16:53:51 -0000 X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD, SPF_PASS, T_TVD_MIME_NO_HEADERS autolearn=ham version=3.3.1 Received: from mail-pd0-f172.google.com (HELO mail-pd0-f172.google.com) (209.85.192.172) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 25 Jun 2013 16:53:50 +0000 Received: by mail-pd0-f172.google.com with SMTP id z10so1031859pdj.3 for ; Tue, 25 Jun 2013 09:53:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:x-gm-message-state; bh=37hNXU8loHyDjRGJ7N/2ntWdPYrOmLlCCaWrBwHDJY0=; b=g/GVgyaLRpeIBIqFi5Su3Ipu67ojTe/j/PWLCY+RYdmo0iOBWunZxRS0Wq10889qKM 7b4Z9yV5GXedsQ9JmsAfQF9qPfFS7DtrorjIxvxX1UH3VUoXmhfcN8w7ut1IKClu0+qD dFk8szrvprekBR3Muf8UzvyaFuUP2VHGgmlE7NXxW93ydicUR00nrB2f5//akAs3TCWc h1MEpGCQRwizgMghYzCztr6ALfiTFST7mj1mkvd4gegXu+Hb55eNiL6OWsesCe7ggYLk qGZhfc0ZApEoF26EAjNloXIQydSLMkZQ4364XWWnOuEN3ksDv0++/GgUPFieWlZ9f/25 PRCA== X-Received: by 10.68.103.194 with SMTP id fy2mr29185101pbb.158.1372179228553; Tue, 25 Jun 2013 09:53:48 -0700 (PDT) Received: from iant-glaptop.roam.corp.google.com.google.com ([2620:0:1000:167c:d9b0:cba3:0:7850]) by mx.google.com with ESMTPSA id fr1sm23989280pbb.26.2013.06.25.09.53.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Jun 2013 09:53:47 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: Go patch committed: Update shift test Date: Tue, 25 Jun 2013 09:53:46 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmMyWypDIoSNCCmqDw2pdWzSde0010TS2OJYnn+eI4+4GQASKTb87uvg6TO8pKCilUFJdQSH9t40SdgJfBr74XYk+zMIRWc/oShd+T7s6OXegkty9L7pCFaSXC9wfGCgtlpXLsNYF746f8gUxNc3ZbsmPip6AGSKq3+DZ8M4G9DfwpRthkbUlIGlsAEddVW6XAbGLDCSXFYhZ6pvjVH5VZ3oMx+qQ== X-Virus-Found: No This patch updates the shift test to the current master version, to correspond to the patch I just submitted. Committed to mainline and 4.8 branch. Ian Index: gcc/testsuite/go.test/test/shift1.go =================================================================== --- gcc/testsuite/go.test/test/shift1.go (revision 200043) +++ gcc/testsuite/go.test/test/shift1.go (working copy) @@ -23,7 +23,7 @@ var ( // non-constant shift expressions var ( - e1 = g(2.0 << s) // ERROR "invalid" "as type interface" + e1 = g(2.0 << s) // ERROR "invalid|shift of non-integer operand" "as type interface" f1 = h(2 << s) // ERROR "invalid" "as type float64" g1 int64 = 1.1 << s // ERROR "truncated" ) @@ -36,3 +36,206 @@ var ( b2 = 1.0 << c // ERROR "overflow" d2 = f(1.0 << c) // ERROR "overflow" ) + +var ( + // issues 4882, 4936. + a3 = 1.0<