From patchwork Sat Jun 7 17:04:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 31524 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A9FC32100A for ; Sat, 7 Jun 2014 17:04:57 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id l6sf22945092oag.11 for ; Sat, 07 Jun 2014 10:04:57 -0700 (PDT) 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=9iBnBR/G7QH991qI0orAbBdZuqht/umTihhYs7B4VYM=; b=cHbuyxqe2tem+RJoFNRFjVbzdxy101KJasOcTLHVA5O0LgJSGDA3rf5J7DI9IvFBrB snbwTHb1ZNHlb3OVOlEhhQ7bQyhMzpmCxUop54RGsi2eFEzgDNrSjPp8HRosidxL6d6U mhSQlmoyV47ckI0iz/7z8uRIil85VceOveoM9/oqlls73IS4MN0/Hkwn1ODkzCnqBkAg nSYp6sJ4ek79DUCCnI/lV8vLYoxtf9gZY5MDTqQWN5Uhas2gtTK8Kb5OOWGlyNzOu31R 62Nnrf6uSkXScfTUo9Deb0UO9wBM28yRdhAQY4NpO9v9dlaREvtXXG22DDzRxxOlxy0T g5og== X-Gm-Message-State: ALoCoQkYUft+sjvTep1Faqe0pYaIdZZ0VPDfLLmzFu6Ux2Dk+uAQ22Y6YBIk2VMde4SNENn2SWAH X-Received: by 10.43.67.67 with SMTP id xt3mr2089500icb.23.1402160697019; Sat, 07 Jun 2014 10:04:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.163 with SMTP id p32ls1093854qgd.42.gmail; Sat, 07 Jun 2014 10:04:56 -0700 (PDT) X-Received: by 10.52.175.69 with SMTP id by5mr12061207vdc.16.1402160696916; Sat, 07 Jun 2014 10:04:56 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id xx2si9318104vdc.55.2014.06.07.10.04.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Jun 2014 10:04:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id id10so2896347vcb.38 for ; Sat, 07 Jun 2014 10:04:56 -0700 (PDT) X-Received: by 10.220.69.72 with SMTP id y8mr14060101vci.21.1402160696826; Sat, 07 Jun 2014 10:04:56 -0700 (PDT) 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.221.54.6 with SMTP id vs6csp29959vcb; Sat, 7 Jun 2014 10:04:56 -0700 (PDT) X-Received: by 10.194.91.175 with SMTP id cf15mr17190742wjb.5.1402160696084; Sat, 07 Jun 2014 10:04:56 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id m5si23349587wjq.46.2014.06.07.10.04.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 07 Jun 2014 10:04:56 -0700 (PDT) Received-SPF: none (google.com: pm215@archaic.org.uk does not designate permitted sender hosts) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WtK35-0003fF-DS; Sat, 07 Jun 2014 18:04:55 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org Subject: [PATCH] target-i386/translate.c: Remove unused tcg_gen_lshift() Date: Sat, 7 Jun 2014 18:04:55 +0100 Message-Id: <1402160695-14060-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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) 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: , The function tcg_gen_lshift() is unused; remove it. Signed-off-by: Peter Maydell --- target-i386/translate.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index 3aa52eb..c02f7fd 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -1505,14 +1505,6 @@ static void gen_shift_rm_im(DisasContext *s, TCGMemOp ot, int op1, int op2, } } -static inline void tcg_gen_lshift(TCGv ret, TCGv arg1, target_long arg2) -{ - if (arg2 >= 0) - tcg_gen_shli_tl(ret, arg1, arg2); - else - tcg_gen_shri_tl(ret, arg1, -arg2); -} - static void gen_rot_rm_T1(DisasContext *s, TCGMemOp ot, int op1, int is_right) { target_ulong mask = (ot == MO_64 ? 0x3f : 0x1f);