Message ID | 20190514000540.4313-27-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2133428ili; Mon, 13 May 2019 20:59:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJ80w2daXugtTT9+dBviD5yduhjDfbPGuxICDvjDUDjHKdDEwVGFbdo1ma8whVn8FVEUQs X-Received: by 2002:a50:97d6:: with SMTP id f22mr33079012edb.115.1557806365700; Mon, 13 May 2019 20:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557806365; cv=none; d=google.com; s=arc-20160816; b=JwLDeB6Ze5TtPLf8ed3mLpFpWBjtv9vqHU/pDUhoNaOJrZ8GCo0IGVADQXVLsopA9X e9irD3v2+38+JdAAQMT23mDhckw42JRdFNaQnmCBprZy8xJ/51+vez/sGdI3rsmvPqae lPZWFbQ6PEiESnCVdEM1rpi+L7WHm8VhaMmrbt4hxbYh6fBJ0JbONfqJ4JLcWk7aZzl3 wIGyoy+tj022WwbIrXEsSBdh+UayRo+SRFT6hklmkxRq8JjpPoGAt9nK3EFfJrNSXmjN 0NnLV4f2z39te+in6Zd3AFLcHI+1EKIiTZHpEqJ34FOLlP081Y8AalkLBONkRm2nlT+N LG3w== 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=x5FvO1VNBruY7d5o+IixYCbEkHOiQI2hjvuUcvzuaH2fpO0GYOo/BH5nSzfDWyxgLT TG8T/6KRWHOqVqvvqy9McuEVBxoMKqKyVqatxTcGVnTcpDplQN560Lx22iTUyTUmfJPn UPgEUNvjAASSsBkEpIWh0jutN4RN1dK3YtaMgX5+ydDU/+H850sKMnFqjJwTVxvdkl7B CWI8128nobRCJXeFfuGS5573Pi0O7xFCHHyHw52aoFx/048UPacN/q8ovIa330zKFL5Q vZvcnu0GuaLJQQYvn8tX+DjpaGLwSxBxx/exp6vdZUid+JJauWJUmiz2f4ePQtK4TTKQ 9CDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=x5xwk29Z; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x44si7172567eda.432.2019.05.13.20.59.25 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 13 May 2019 20:59:25 -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=x5xwk29Z; 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]:38628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1hQOb6-0002WT-Nu for patch@linaro.org; Mon, 13 May 2019 23:59:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hQOar-0002W6-SB for qemu-devel@nongnu.org; Mon, 13 May 2019 23:59:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hQOaq-0003f8-Qu for qemu-devel@nongnu.org; Mon, 13 May 2019 23:59:09 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:38009) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hQKxg-0003hH-0C for qemu-devel@nongnu.org; Mon, 13 May 2019 20:06:28 -0400 Received: by mail-pg1-x52e.google.com with SMTP id j26so7598243pgl.5 for <qemu-devel@nongnu.org>; Mon, 13 May 2019 17:06:17 -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=x5xwk29ZL+7vqT3GgQxBoj/4VOc1XPju6PBEcsc8Eqv3XDhGGnkhpkgCpvamxTXd1J Cx0rNBEuubgxMAyw6mFd9Q5CJD95kgyzFkw7/HDuqMPPeTskFTCVaAaH+jVtVimjI558 hJ2pC9wLje2XitkE3qBtjFIxZ36euZtSP//gFw1Cw00hpKpH64f4X1ElxGhP6RQOKvaV YKeTT6USHEgt/1qSQMXDq6qNqyJtBs878svnZZ8u6xOGO16mXmTI06Y3tJuTptIGNP1z HvyRffbwDirGwcAuIhN47y9MyQ8MUFrEDNMlY6ChPnCz4kx903qM4awoFHFLMPd9H2Ft YpPQ== 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=mlrSxC+D+ZLwhIvATDETUQTLvlh0Tb5DODRPjHhg3J/q0smQDZNcLZh5ET2WWGGrnI kejchTEdXqvYLDhZ1Hfw1elLw2jo8TwZgNGq18PjxdeEQGBtmzE4SF3uJcuR3qsPQxVH o7O7nbF7mosa0shEeYEFDohKOPTJEeP8BYHmvfTofzzEQgMLEYl4nc6euPRUQafLocHy eIVI5QnhhlpccsWFpd5SRvLbbxjQDVM+dfhqd3b8fEfhQPZaM2XJ9soUZOi3k7rKM1oi Sx0P+0CyG9yD3mIQyOpvKjMDRA6YwfZqttKxfER9OeB8MXJFOUnkPyswUVgkkOA6enOO o7SA== X-Gm-Message-State: APjAAAWGCl/g8ftQybSP+5y0wbySDh0cZESxrrfsk+Lg7LuAPyghbqHe /xgPns32ACM0WWawsEzFX+bNOprirHk= X-Received: by 2002:a63:5443:: with SMTP id e3mr34425763pgm.265.1557792376633; Mon, 13 May 2019 17:06:16 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id u3sm238151pfn.29.2019.05.13.17.06.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 17:06:15 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Mon, 13 May 2019 17:05:35 -0700 Message-Id: <20190514000540.4313-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190514000540.4313-1-richard.henderson@linaro.org> References: <20190514000540.4313-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52e Subject: [Qemu-devel] [PULL 26/31] target/ppc: Use tcg_gen_abs_i32 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linux.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg: gvec improvments
|
expand
|
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);