From patchwork Tue Jun 3 19:02:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 31337 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3D8E420AE6 for ; Tue, 3 Jun 2014 19:02:09 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id pa12sf31691361veb.11 for ; Tue, 03 Jun 2014 12:02:08 -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=VD74sqSYwswNgXJyLHihh8sXQDCnEf1MxLZOLxNxLlM=; b=YFm2eViuOEB4INd6YazL6z8hEGHJYkKQiUMfS6C3Z2dOpiw88cQ5uZBi1M9NDewwXr k3eUECl5MKCe7aHoui1gGM7hCzIiyO6/kqxMzo9NEo6+RvvCpfqC0efO5fmQPDj4l3Ly amAwbUXypybZvJm2PyWV9L1fDdOT2d8L9iP+7KT+fdRRElNb9lBueC/ptsfHB5S3t+9E G6D0Wu1hpXQ6K59697G+x2WI30RSBRpK/+7p0zyZmfolwhTRT3EHDEsob2seB3KzngAU GzThaB99gRREtOoFt+BuygNQgXoK98qggjJZ1At/RN6TAqgPIge2wM4pu+dBm+LLBS6N HPhg== X-Gm-Message-State: ALoCoQkhdD8K678UvGOUZMa3/HfmtKwQB99eN2O2essAxm9fdy6ZdDg55SitOzbQtlTIPk5bRbrd X-Received: by 10.236.110.68 with SMTP id t44mr15273675yhg.31.1401822128911; Tue, 03 Jun 2014 12:02:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.42 with SMTP id 39ls2641827qgq.26.gmail; Tue, 03 Jun 2014 12:02:08 -0700 (PDT) X-Received: by 10.220.98.143 with SMTP id q15mr9381761vcn.38.1401822128791; Tue, 03 Jun 2014 12:02:08 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id sk5si40391vcb.107.2014.06.03.12.02.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Jun 2014 12:02:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id il7so3689461vcb.0 for ; Tue, 03 Jun 2014 12:02:08 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr39148611vcg.16.1401822128650; Tue, 03 Jun 2014 12:02:08 -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.220.221.72 with SMTP id ib8csp18411vcb; Tue, 3 Jun 2014 12:02:08 -0700 (PDT) X-Received: by 10.194.80.7 with SMTP id n7mr63495253wjx.8.1401822127698; Tue, 03 Jun 2014 12:02:07 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id wp1si219389wjc.40.2014.06.03.12.02.07 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Jun 2014 12:02:07 -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 1WrtyH-0000Tr-Ok; Tue, 03 Jun 2014 20:02:05 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH] target-arm: Delete unused iwmmxt_msadb helper Date: Tue, 3 Jun 2014 20:02:05 +0100 Message-Id: <1401822125-1822-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.169 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 iwmmxt_msadb helper and its corresponding gen function are unused; delete them. (This function appears to have never been used right back to the initial implementation of iwMMXt; it is identical to iwmmxt_madduq, and is presumably an accidental remnant from the initial development.) Signed-off-by: Peter Maydell Reviewed-by: Peter Crosthwaite --- More dead code elimination courtesy of clang 3.4... target-arm/helper.h | 2 -- target-arm/iwmmxt_helper.c | 9 --------- target-arm/translate.c | 2 -- 3 files changed, 13 deletions(-) diff --git a/target-arm/helper.h b/target-arm/helper.h index b63fd0f..393ef4d 100644 --- a/target-arm/helper.h +++ b/target-arm/helper.h @@ -456,8 +456,6 @@ DEF_HELPER_3(iwmmxt_avgb1, i64, env, i64, i64) DEF_HELPER_3(iwmmxt_avgw0, i64, env, i64, i64) DEF_HELPER_3(iwmmxt_avgw1, i64, env, i64, i64) -DEF_HELPER_2(iwmmxt_msadb, i64, i64, i64) - DEF_HELPER_3(iwmmxt_align, i64, i64, i64, i32) DEF_HELPER_4(iwmmxt_insr, i64, i64, i32, i32, i32) diff --git a/target-arm/iwmmxt_helper.c b/target-arm/iwmmxt_helper.c index 398cbcb..a506914 100644 --- a/target-arm/iwmmxt_helper.c +++ b/target-arm/iwmmxt_helper.c @@ -369,15 +369,6 @@ IWMMXT_OP_AVGW(1) #undef IWMMXT_OP_AVGW #undef AVGW -uint64_t HELPER(iwmmxt_msadb)(uint64_t a, uint64_t b) -{ - a = ((((a >> 0 ) & 0xffff) * ((b >> 0) & 0xffff) + - ((a >> 16) & 0xffff) * ((b >> 16) & 0xffff)) & 0xffffffff) | - ((((a >> 32) & 0xffff) * ((b >> 32) & 0xffff) + - ((a >> 48) & 0xffff) * ((b >> 48) & 0xffff)) << 32); - return a; -} - uint64_t HELPER(iwmmxt_align)(uint64_t a, uint64_t b, uint32_t n) { a >>= n << 3; diff --git a/target-arm/translate.c b/target-arm/translate.c index 7f6fcd6..37d3b6b 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -1381,8 +1381,6 @@ IWMMXT_OP_ENV(avgb1) IWMMXT_OP_ENV(avgw0) IWMMXT_OP_ENV(avgw1) -IWMMXT_OP(msadb) - IWMMXT_OP_ENV(packuw) IWMMXT_OP_ENV(packul) IWMMXT_OP_ENV(packuq)