From patchwork Wed May 1 05:05:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 163193 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp4128417ill; Tue, 30 Apr 2019 22:18:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBMXkocLN/ONHUnUaaZ3lulqSCdd6BcWKsOO3cOFXsp7oOB8UVmaz9MaFcgBlbZ7bz3dhe X-Received: by 2002:a05:600c:2506:: with SMTP id d6mr2882599wma.106.1556687881369; Tue, 30 Apr 2019 22:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556687881; cv=none; d=google.com; s=arc-20160816; b=SVId69EhPeb0R/abH+vUbpsvACX60ahDt23poEaPp0Q2vZ66VpGmT6H+c9VSB07Soc yfZc1bVVrr43zMUG2iE0g+NOrjvLUxRbIIuAfnfIWENWDuUN5rp/oy0VX+TjtkCn6Axv G40Wots4Sxa8zfjg7JX+Cc/mGyv9Ga3dQVJQ0f4KWUNKZIYLvmdfO/kc94FaqgB3UN1C UlUn22r1Je6V6cCddqufsqBdGVUOvqnHK8MQgwmKRHHfV4NwBkSV2ao1MTQgUeieSAbJ ghMW2vXJG8gRQHtBuDupzXL28FmKaKNqzWdQUH4rBPhOIBtIavQDHaGeyk1rrWx/9/sI htBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=FH8HIUisgKxx/wO5rpgn7QNUU9WJqnDYvJ4xHC9+spw=; b=rhHgHIh+nW/eDMWFab5XOveciqaquqR5fZGddzb/JTvDHnRDVUxfYxulDpoKMFyRTU I8RUSr1wdqpk+z/4eM5GFL/Z4MrovjtX5zZgjNh5l7nKOn4yUYweOP8JHfVTyndvPRpv ku5LwHvOwuZduq0pwzqGHpJ+Lv3cZAdSZOPSaro2AkmB/TTqNupS0qiJ37iEY9GioVM/ 8amsw4JmQgqbk6+J/gYLg29+ii6YhB9C9URaYDnjA+ga+B82RdQ2OZRP7gUhSmr0DgPL RVr1+PwHyM9ZHMpEiX2ETmPFhmIFcYHXyLT5vek7TCCLT0j974bkbSjworZtCUXtTFJk VfCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Typa60c+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n16si2647208wmh.3.2019.04.30.22.18.01 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 30 Apr 2019 22:18:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Typa60c+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:36381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLhd2-0008AL-3P for patch@linaro.org; Wed, 01 May 2019 01:18:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLhRk-0006jC-3K for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLhRh-000344-1q for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:20 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:44934) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLhRg-00033F-SZ for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:16 -0400 Received: by mail-pg1-x541.google.com with SMTP id z16so7854964pgv.11 for ; Tue, 30 Apr 2019 22:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FH8HIUisgKxx/wO5rpgn7QNUU9WJqnDYvJ4xHC9+spw=; b=Typa60c+Z3EIomuumJgdLEIvLgoW18goDviL8Ikh1kRgWYGsKBSfLvyrKklGaMeYn4 V49XvPlDOJJ/tL5Lwl/dhmEplZEYbYTS29l0NX0oyMB+22i21Lkobh5JOuJFn5fQoua4 vH6Bh96ZezD0wnTGWT86/qvUv86dubLrWDAyToa7J4H1VQbvyZuPCFuze3krvQiFABSm DWcUAPacFj9wtnnmrfDOK2lbj1y//Vj9lL+3B2v/cYqyP+wVHZhdAfLCwGhsFhAPUwPg wM00QsbpJ6m1RqaN8/DA8/gmFhwDiOtjAYfiCkPTqoqPOwvJeg+wT/lPwrbWtK3uaY70 0zlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FH8HIUisgKxx/wO5rpgn7QNUU9WJqnDYvJ4xHC9+spw=; b=pu/DKOmE7CoCrUWFm2Sh428/mhZU53kDAyY+zatzPr0BYvNAVq0qM10XfvOZophs+1 t/fhvzKDcoaRqtcfKh5x88rfsOyQ7ZFfWW4ZEZM8v/NSM0C/9wYluh4fvt9G9pqIk846 94AlUimVzE7tA5/PgyEWxniitv/u7g0jhuZS0uTD8WU6aiVPEkAEvCtWO0gIHXSTJpC6 Vz9q0loy1BnmxVcE0JOWkBd7rijewQx9bkPvbp4o1QwTeVBHsvEG/QX9pVtfMvLkxlJF 01uL3TCtEyzbEhtEAyajcT5cy8GrPLeRqXwdfpW5JlRapd/C042KJIZE+uEaJB4SfnZQ ULvA== X-Gm-Message-State: APjAAAV2WeTvc3krc38+CH2a6gMBkP9xTULFEdK3YahiYhovNMMHGER1 EYqaFlSb1WaLxcgZI3EwJ6qwDP4fcnw= X-Received: by 2002:aa7:9aaa:: with SMTP id x10mr33551672pfi.225.1556687175197; Tue, 30 Apr 2019 22:06:15 -0700 (PDT) Received: from localhost.localdomain (97-113-189-189.tukw.qwest.net. [97.113.189.189]) by smtp.gmail.com with ESMTPSA id t127sm9687251pfb.106.2019.04.30.22.06.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 22:06:14 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 30 Apr 2019 22:05:32 -0700 Message-Id: <20190501050536.15580-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190501050536.15580-1-richard.henderson@linaro.org> References: <20190501050536.15580-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::541 Subject: [Qemu-devel] [PATCH v2 25/29] target/ppc: Use tcg_gen_abs_i32 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20190423102145.14812-2-f4bug@amsat.org> Signed-off-by: Richard Henderson --- target/ppc/translate/spe-impl.inc.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) -- 2.17.1 diff --git a/target/ppc/translate/spe-impl.inc.c b/target/ppc/translate/spe-impl.inc.c index 7ab0a29b5f..36b4d5654d 100644 --- a/target/ppc/translate/spe-impl.inc.c +++ b/target/ppc/translate/spe-impl.inc.c @@ -126,19 +126,7 @@ static inline void gen_##name(DisasContext *ctx) \ tcg_temp_free_i32(t0); \ } -static inline void gen_op_evabs(TCGv_i32 ret, TCGv_i32 arg1) -{ - TCGLabel *l1 = gen_new_label(); - TCGLabel *l2 = gen_new_label(); - - tcg_gen_brcondi_i32(TCG_COND_GE, arg1, 0, l1); - tcg_gen_neg_i32(ret, arg1); - tcg_gen_br(l2); - gen_set_label(l1); - tcg_gen_mov_i32(ret, arg1); - gen_set_label(l2); -} -GEN_SPEOP_ARITH1(evabs, gen_op_evabs); +GEN_SPEOP_ARITH1(evabs, tcg_gen_abs_i32); GEN_SPEOP_ARITH1(evneg, tcg_gen_neg_i32); GEN_SPEOP_ARITH1(evextsb, tcg_gen_ext8s_i32); GEN_SPEOP_ARITH1(evextsh, tcg_gen_ext16s_i32);