Message ID | 20190514000540.4313-31-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | e1c4786541d90fefc2e84d2db57e0a89c6893403 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1981857ili; Mon, 13 May 2019 17:27:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdSzonD65uHahjmch4IS3Obm4nYpYD5oGayuApMKf3e6MbY9MaJTAV3EEogm65MObF2Tay X-Received: by 2002:a17:906:1e01:: with SMTP id g1mr4282339ejj.239.1557793625712; Mon, 13 May 2019 17:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557793625; cv=none; d=google.com; s=arc-20160816; b=QOtuFPGniiMdMEItXz0J0QjAdrfXoVjzCCbDFfy19Rgo/nleibtZJa+lp84UZh9oGN dzHcalmLOAK2EI3RNhK5UZ9CSqw8LDxCmhZjaLlHFfF7Bn0kg12lTcEMqMDusJrM1QYi MPAY/qaK+nMALyQa/I3g4tdoE/MA8tb6X29cm7oe0HhhELh4QC1jmXc8qq5D0kpCbDil EbHjV97CE72NmbZlb073EdWBEHIyW4seJc5YFQG30duJNkcxyN+dNMQdaqUJphcnSZLC Ou42bA1yfXqltrp8MpcQ+o/YsIkeVgocJbcydQlXFpH9vxLz7Zp+k0g8lI5voZQ4LsmS 4DWw== 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:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=noj71OX2nBmtjQYQqqpKzc/I+BY/kKSngSA5N+1PwXo=; b=oNkrk6XOo081scHYeUCZLGEjUJe6J/+RmZ8r1l8KW2i1HBcyAE62/fRfKk/3Sj7gWU AN1gfTwbK37MW/oK4fv9zWZhV+G/p7Xv/sxg2Il4Fej1QqNgPtvu6EPhnBU5bccO6MBJ l+SQVZWAGLVPzNvGe3Lh3R2Pe5yaWp10Zp8vkpRUO2WhpNo3T30ldE/cEnERT3B5IJvB AtD7ebkRHoJ7+XLxk5YnMvgetboQorma9i7+v42R8xPkkIg5FwAEiWa6GxbYigtnEKRk P4rNVlJdkyDp8CPVFR5ojH/22E7m927VP5rOHhWncXOiaNKvUSSghb8n81rdnVcZCKYB t+KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jtcz28yA; 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 g40si3226672eda.344.2019.05.13.17.27.05 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 13 May 2019 17:27:05 -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=jtcz28yA; 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]:36877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1hQLHc-0001ct-OB for patch@linaro.org; Mon, 13 May 2019 20:27:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hQL4N-0004h8-S5 for qemu-devel@nongnu.org; Mon, 13 May 2019 20:16:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hQKxi-0003u7-77 for qemu-devel@nongnu.org; Mon, 13 May 2019 20:08:13 -0400 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]:38125) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hQKxf-0003kn-U9 for qemu-devel@nongnu.org; Mon, 13 May 2019 20:06:28 -0400 Received: by mail-pl1-x644.google.com with SMTP id f97so2171963plb.5 for <qemu-devel@nongnu.org>; Mon, 13 May 2019 17:06:22 -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; bh=noj71OX2nBmtjQYQqqpKzc/I+BY/kKSngSA5N+1PwXo=; b=jtcz28yA526udG4B48oNCqm7yEW54j8bRtwkhwSvWd4tkdYt5//ZF4sPwNhEzdSD0F ClPCon1esoPYq5sw65/d5kjS0fL4HG7iH61x7bW5UnG4+hZ+DTNisXutkBE/uWrO6IRp 5InJx9aVIvvDePzPpjjzcIvUg1BberPxpW5X40e6RmdQKOlLOTpTi+CIYaaXL0ZE523C XHXXIwgub9LdFrExuTd+N6OfyUziQTYS37cAdlUdH0oyMtqs+XL28ZlKNJ4Uj6HS9xFF CiB1tTRqbLC8eHq2Hwe+OHhWxOYqtlYncPjqWASORNdZLvHAA4bgAEmJ8m9y+AkcRwWp PuAw== 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; bh=noj71OX2nBmtjQYQqqpKzc/I+BY/kKSngSA5N+1PwXo=; b=FB9VysfiXTVv73I+ZejP3NnDSb3wK8zzspuusZIYMm89EGdc3Ietlbc3zWnP5IvukB yWxibT5ywFC3HKQvUT/FM3O7Lqq+dBN7KtLU2yUYVoRrlCkYvehTMOZlVjmp0jTNhewR Fi1Q3dxNdAGw6gbdY6FsgLET/P5WKpf4CntL9ugUEtLBAq8PLcv436FSHhnZF5GIFKzg 5AlkXeNtuq5yM0Q2eG37Y03lR3s4ScVOSybDFqwi4CHqPT5SaoPO2ZluF1w84AzxI06Q eY1FhEXdT2LxUcspYGfSlSG6+u2fcuXdaTPYaegkJ4DFyqNWUzadD/kGX0Ts6XL0SGyJ sV1A== X-Gm-Message-State: APjAAAW9rRHSSZQvJaNv0c88HazbyZsfk0FY93jucHZTYcRPwBFTEO/B kvMMh8biyTHsLaYw4iEwCKhGFvFIIoA= X-Received: by 2002:a17:902:868c:: with SMTP id g12mr17201396plo.323.1557792381317; Mon, 13 May 2019 17:06:21 -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.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 17:06:20 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Mon, 13 May 2019 17:05:39 -0700 Message-Id: <20190514000540.4313-31-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> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::644 Subject: [Qemu-devel] [PULL 30/31] target/xtensa: 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 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/xtensa/translate.c b/target/xtensa/translate.c index 301c8e3161..b063fa85f2 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -1709,14 +1709,7 @@ void restore_state_to_opc(CPUXtensaState *env, TranslationBlock *tb, static void translate_abs(DisasContext *dc, const OpcodeArg arg[], const uint32_t par[]) { - TCGv_i32 zero = tcg_const_i32(0); - TCGv_i32 neg = tcg_temp_new_i32(); - - tcg_gen_neg_i32(neg, arg[1].in); - tcg_gen_movcond_i32(TCG_COND_GE, arg[0].out, - arg[1].in, zero, arg[1].in, neg); - tcg_temp_free(neg); - tcg_temp_free(zero); + tcg_gen_abs_i32(arg[0].out, arg[1].in); } static void translate_add(DisasContext *dc, const OpcodeArg arg[],