From patchwork Thu Feb 20 19:47:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 25092 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 834CE203C6 for ; Thu, 20 Feb 2014 19:47:31 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id to1sf8855388ieb.3 for ; Thu, 20 Feb 2014 11:47:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=9ACgiccnPt7HDjwSCVdXO0nxIHEBsyLI9TOjxkEQsnw=; b=iwPPdkAZazJO5mAzFkD2g6GlG1U+6R4azuoa8S22pQSc0XuIHejzjLu9G1bN01nkrh 9QSkDQbsPDTazkX26xA1f4KxeZNizAxE/YQP/Z910hnwVcti7hfYtybuwsO+EzjmG1Tn X9jxZPBvOnT89UTuKnQ64mO4JfE6NkjWsapJN4rgkN5NVMCsajZ4SAlqDaMCTBHSr9QC DIvnHn88Bm2eGiDfno5zK7akL2cmU3oWgrKzQ8+kLkTWaWDRtDK4qqRwHzL7pDd0f2NK LC3TQK5OILYuMTX38BypCkPK/iWrdHY/AEL8Wqe18hlRXNHHnm5oBGdxal7VW9VQ+G1X fcYQ== X-Gm-Message-State: ALoCoQl6L34LuR+SUvUFrQOCwFU31r9fzuqphfHlA/seEKFnYFbejh1uvjxfxWjMDcq9ZSQqyJUI X-Received: by 10.42.98.81 with SMTP id r17mr1349577icn.8.1392925650459; Thu, 20 Feb 2014 11:47:30 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.70 with SMTP id t64ls661250qge.1.gmail; Thu, 20 Feb 2014 11:47:30 -0800 (PST) X-Received: by 10.52.165.101 with SMTP id yx5mr1771129vdb.29.1392925650244; Thu, 20 Feb 2014 11:47:30 -0800 (PST) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id a8si1905924vej.55.2014.02.20.11.47.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 11:47:30 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id la4so2284638vcb.7 for ; Thu, 20 Feb 2014 11:47:30 -0800 (PST) X-Received: by 10.220.98.204 with SMTP id r12mr2139914vcn.48.1392925650126; Thu, 20 Feb 2014 11:47:30 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp83986vcz; Thu, 20 Feb 2014 11:47:29 -0800 (PST) X-Received: by 10.194.60.16 with SMTP id d16mr3741851wjr.46.1392925649312; Thu, 20 Feb 2014 11:47:29 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id dk3si502202wib.48.2014.02.20.11.47.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 20 Feb 2014 11:47:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WGZah-0003ok-EX; Thu, 20 Feb 2014 19:47:27 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Stefan Weil , qemu-ppc@nongnu.org, Alexander Graf , Tom Musta Subject: [PATCH] target-ppc/translate.c: Use ULL suffix for 64 bit constants Date: Thu, 20 Feb 2014 19:47:27 +0000 Message-Id: <1392925647-14649-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 64 bit constants need the "ULL" suffix, not just "UL", because on 32 bit platforms 'long' is not large enough and this will cause a compiler warning. Signed-off-by: Peter Maydell --- I think plain "UL" as a suffix is pretty much never right; it should either be "U" or "ULL". target-ppc/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index c5c1108..54013a2 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -7179,8 +7179,8 @@ static void gen_xxpermdi(DisasContext *ctx) #define OP_NABS 2 #define OP_NEG 3 #define OP_CPSGN 4 -#define SGN_MASK_DP 0x8000000000000000ul -#define SGN_MASK_SP 0x8000000080000000ul +#define SGN_MASK_DP 0x8000000000000000ull +#define SGN_MASK_SP 0x8000000080000000ull #define VSX_SCALAR_MOVE(name, op, sgn_mask) \ static void glue(gen_, name)(DisasContext * ctx) \