From patchwork Wed Apr 25 01:22:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 134204 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp249831lji; Tue, 24 Apr 2018 18:23:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx48/zmKWDY5oPtN5yeeOarH99Lve1E+4WbDi4D2VpNsyJwr56hJkKhIcDDvxMwfnlXw8FiRn X-Received: by 2002:aed:2501:: with SMTP id v1-v6mr31196559qtc.66.1524619414938; Tue, 24 Apr 2018 18:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524619414; cv=none; d=google.com; s=arc-20160816; b=czrjdzQVD+wl8yQLeOGt7BvQ8EVldwyDZqkiHDyIhau8kTIXnhL1ucpaW/v3wdOEgs rWknH8qmsjR0qABcwrJ7CMN/mlAh/cU9xkH8i2E9DmlaIxQO5OiZmmkX12q/O8MfW4YY m+dlXkKVWQK1dGq42SNABOjvHSy/oFCnlVbHi+bxIPRAf+f3F2E0XJRInzLyEXweiFcX L2/r4hbEHQrWr64GJJDIwwiTED15rVhq0yxGkTbxKg7P/DYQ8PSu9jAQKd771Dgr2oTj RLHqQOvnwdReNcv3r+oJtMI0qMCddayIAg0lxftrTYz7C252yl0/eSSBtI6W8TK6tVBJ 0ydA== 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:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=07PQ7qjqGzrhk3ovEorHIR1DZm6l+STIvOI5xfrh/no=; b=0d3YTyk9TU01z1+/mqRlymEIsKZ+rV2devm6wz3COGHXj+ezqYA85xy5L3R1Eu5mxm scE22DQAAfcnpi9O4UW9P0zoxUcbl+Ail09yzOERGxMJ5lGPmGUDcSRghNhBsA1JhNc4 lkHDfUwnvoEmEBqP0L+i3xyVyI6q/iAs9o00l2uY57Qn5TlO4bYG1wZXC3TXi/KOhGCb vwSfuNhd6ubpNr+fyiJ22suDYk6x89+OkGMWAQ+yfoINXE+0FJlHcl1OqKyVCycdJzta QGEbVf0wM8z5y51ZngmJPjRCUFIxSzms7ZdID/35cSLHiuN9YMLgWyNJPS2jVCf+7f7J GqwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eG8SrTYC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g14-v6si8240094qtc.31.2018.04.24.18.23.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 18:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eG8SrTYC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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 ([::1]:33296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB99i-0003yx-DS for patch@linaro.org; Tue, 24 Apr 2018 21:23:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB99N-0003yd-K4 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 21:23:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB99I-00073O-Lt for qemu-devel@nongnu.org; Tue, 24 Apr 2018 21:23:13 -0400 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]:42584) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB99I-00072d-FA for qemu-devel@nongnu.org; Tue, 24 Apr 2018 21:23:08 -0400 Received: by mail-pf0-x233.google.com with SMTP id o16so13743726pfk.9 for ; Tue, 24 Apr 2018 18:23:08 -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; bh=07PQ7qjqGzrhk3ovEorHIR1DZm6l+STIvOI5xfrh/no=; b=eG8SrTYCxmE7fHds+w023b/OzvGT5/TIZvmzKTLmU1vKy5x/RrQ9jIzRVWwXOftHGT EpF82GRZ6NkezlUDMDAVJuj/P5Hirp0el+lLr8t3RNdvUg1OYbdLKxTe4qzPk64RSo+Y nZ1fQlHS933jfLi/bItt55saJE7/LJVccxzIg= 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; bh=07PQ7qjqGzrhk3ovEorHIR1DZm6l+STIvOI5xfrh/no=; b=WSEYGG7+SUeZgPAlFd7ttHIaoFiBDOFfzJigZYF/ZGsvEHwHYQFB1OP3e/PJPCNeoV TyAdxITdENmOQAW6MLzRuzVtZs4lOeFnuBjhbv9C6p0U56/0hIRSqMufFFtyrnCja15c ffkRtYlSKv6c242pXgmcU2Xv5ibSj8snHrgmgUaGjoM7uf2Q5c7UubrIXo1+za8JFr5r w4DQVygO8N6eBvQPPv4Bton8knFVAQP9IZIJHeTNTwq3pmmDR1hPPWE9gMOwm2OcBTRe aKVTBecWiNKKkDtsL7H9M2Y1z7FlA/dTE0ltm/FjWMYJyOWdylE8Y+8KZqaVziqvmig9 TCyQ== X-Gm-Message-State: ALQs6tBfbhQrci96cHSfjioI1N0nzDoCk1zsIqzjiGfIGJFZYdKLDJm8 52qRRXrvJGpCGB+z6z9OSyxbKOE7MGU= X-Received: by 10.99.52.76 with SMTP id b73mr22380248pga.258.1524619386974; Tue, 24 Apr 2018 18:23:06 -0700 (PDT) Received: from cloudburst.twiddle.net.com (cpe-76-173-164-138.hawaii.res.rr.com. [76.173.164.138]) by smtp.gmail.com with ESMTPSA id z127sm27767966pfb.72.2018.04.24.18.23.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Apr 2018 18:23:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 24 Apr 2018 15:22:51 -1000 Message-Id: <20180425012300.14698-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::233 Subject: [Qemu-devel] [PATCH 0/9] target/arm: Fixups for ARM_FEATURE_V8_FP16 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: peter.maydell@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" When running the gcc testsuite with current aarch64-linux-user, the testsuite detects the presence of the fp16 extension and enables lots of extra tests for builtins. Quite a few of these new tests fail because we missed implementing some instructions. We really should go back and verify that nothing else is missing from this (rather large) extension. In addition, it tests some edge conditions on data that show flaws in the way we were performing integer<->fp conversion; particularly with respect to scaled conversion. r~ PS: FWIW, this was written against my tgt-arm-sve-9 tree, since I was trying to test sve as generated by gcc. I don't *think* there are any dependencies on any of the sve patches, but I didn't check. PPS: There are two more failures that might be qemu fp16 failures, but those are SIGSEGV. This patch set cures all of the SIGILL and (subsequent) SIGABRT type failures within the testsuite. Richard Henderson (9): target/arm: Implement vector shifted SCVF/UCVF for fp16 target/arm: Implement vector shifted FCVT for fp16 target/arm: Fix float16 to/from int16 target/arm: Clear SVE high bits for FMOV target/arm: Implement FMOV (general) for fp16 target/arm: Implement FCVT (scalar,integer) for fp16 target/arm: Implement FCVT (scalar,fixed-point) for fp16 target/arm: Implement FP data-processing (2 source) for fp16 target/arm: Implement FP data-processing (3 source) for fp16 target/arm/helper.h | 6 + target/arm/helper.c | 87 ++++++++++- target/arm/translate-a64.c | 371 +++++++++++++++++++++++++++++++++++++-------- 3 files changed, 399 insertions(+), 65 deletions(-) -- 2.14.3