Message ID | 20180723201748.25573-84-mdroth@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 712E0112E for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:23:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60CCE2852B for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:23:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5454A28563; Mon, 23 Jul 2018 21:23:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E5F4F2852B for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:23:53 +0000 (UTC) Received: from localhost ([::1]:36750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fhiJ6-0001hT-Sg for patchwork-qemu-devel@patchwork.kernel.org; Mon, 23 Jul 2018 17:23:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhKu-00047d-RU for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:21:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhKt-0005Tj-NL for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:21:40 -0400 Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:33597) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhKt-0005Tc-Hn; Mon, 23 Jul 2018 16:21:39 -0400 Received: by mail-oi0-x234.google.com with SMTP id l10-v6so3508659oii.0; Mon, 23 Jul 2018 13:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aU6+1pILpx3AH2qSrnLg/7HMEjAsH5WP/rg+2tSd7Gk=; b=aQm82p8IYvfbH37ZUwg2yMPFNm4hdOfW55zkLAw9eL7bscaLdMURXQpR+mT4BnLRm0 E1kYlwbzem6BTlAgcjVJ3PyawUjQbfJKEL6iOAMj9/2t9UyteqRwmLHIzlhnRngva7/D uz7InFmxuqq4NVfaqgKBvG9fLB1C9leOeGy1dWBzokb97meqlJRUm0xyoPcVtekQY+6i /TKM/SG0ibuGbH3vYN3iI0TjrucH41s3ScCNrx/rYfSQ8iBV6iJv/wwHNu20WY43mbKs WaHRV4j8v8XYkzhYSPa/ZorZC0ROsSKK4smQ7S8NRuCYHQwYA36GuWHE8NyZXmPsx5A+ PuOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=aU6+1pILpx3AH2qSrnLg/7HMEjAsH5WP/rg+2tSd7Gk=; b=n/juX7DLUZ3DZozVUZ+DrZ4IuZ365PjGv1crjkL7i8/oBsUQmNU1sw1930zobMK7R0 GQ+0ILOWIIqBHBFRLggiqX1ryvqTE6N+AjEO9RVhP7CeuzyqWc1C2G4mRW7xZcxE+RCa uEt2x0N7rsEnhCwGhlEac38GIhqoV9j3gamL0NXNIosMjwj4ev5iPKx1VUBqb/KiymUl GxP0t8VRelnamID1IU/hzQlH1+KoUJW5X5G06fYR6EN6TbguJVlJ/vI6IuuIs16THa5j hRnYdaLhOrYUU5cqTM9rQXdi5giX5tqdm27q3KMKai40Pk+gsslv66CZ4H2259fljhNl 5i/w== X-Gm-Message-State: AOUpUlGBYHOHm9MdZWajUvoA6X4sPrqf7+zBPY1mHYT7aXonMqCRt61l XmSKMgJwWUbAMnjOV+w9arxrPLdk+DGKkQ== X-Google-Smtp-Source: AAOMgpdPVlzBpQOvrObmKCzdrgRLwN+R66kE1j/+6CzbaoJxh8QMJ6f5R4VA0QAf15U89vCNhdGm7A== X-Received: by 2002:aca:68a2:: with SMTP id o34-v6mr296209oik.267.1532377298328; Mon, 23 Jul 2018 13:21:38 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id e125-v6sm9840061oig.4.2018.07.23.13.21.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jul 2018 13:21:37 -0700 (PDT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 23 Jul 2018 15:17:32 -0500 Message-Id: <20180723201748.25573-84-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> References: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> 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:4003:c06::234 Subject: [Qemu-devel] [PATCH 83/99] target/arm: Implement FCSEL for fp16 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: Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= <alex.bennee@linaro.org>, qemu-stable@nongnu.org, Peter Maydell <peter.maydell@linaro.org> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Patch Round-up for stable 2.12.1, freeze on 2018-07-30
|
expand
|
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 05d51ecbdc..7075f27e05 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -4660,15 +4660,34 @@ static void disas_fp_csel(DisasContext *s, uint32_t insn) unsigned int mos, type, rm, cond, rn, rd; TCGv_i64 t_true, t_false, t_zero; DisasCompare64 c; + TCGMemOp sz; mos = extract32(insn, 29, 3); - type = extract32(insn, 22, 2); /* 0 = single, 1 = double */ + type = extract32(insn, 22, 2); rm = extract32(insn, 16, 5); cond = extract32(insn, 12, 4); rn = extract32(insn, 5, 5); rd = extract32(insn, 0, 5); - if (mos || type > 1) { + if (mos) { + unallocated_encoding(s); + return; + } + + switch (type) { + case 0: + sz = MO_32; + break; + case 1: + sz = MO_64; + break; + case 3: + sz = MO_16; + if (arm_dc_feature(s, ARM_FEATURE_V8_FP16)) { + break; + } + /* fallthru */ + default: unallocated_encoding(s); return; } @@ -4677,11 +4696,11 @@ static void disas_fp_csel(DisasContext *s, uint32_t insn) return; } - /* Zero extend sreg inputs to 64 bits now. */ + /* Zero extend sreg & hreg inputs to 64 bits now. */ t_true = tcg_temp_new_i64(); t_false = tcg_temp_new_i64(); - read_vec_element(s, t_true, rn, 0, type ? MO_64 : MO_32); - read_vec_element(s, t_false, rm, 0, type ? MO_64 : MO_32); + read_vec_element(s, t_true, rn, 0, sz); + read_vec_element(s, t_false, rm, 0, sz); a64_test_cc(&c, cond); t_zero = tcg_const_i64(0); @@ -4690,7 +4709,7 @@ static void disas_fp_csel(DisasContext *s, uint32_t insn) tcg_temp_free_i64(t_false); a64_free_cc(&c); - /* Note that sregs write back zeros to the high bits, + /* Note that sregs & hregs write back zeros to the high bits, and we've already done the zero-extension. */ write_fp_dreg(s, rd, t_true); tcg_temp_free_i64(t_true);