From patchwork Tue Aug 29 20:47:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 111252 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp1926367qge; Tue, 29 Aug 2017 13:50:03 -0700 (PDT) X-Received: by 10.237.62.82 with SMTP id m18mr8130910qtf.29.1504039803384; Tue, 29 Aug 2017 13:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504039803; cv=none; d=google.com; s=arc-20160816; b=G65TCGN7jZe2Vd3QvfOq85KHXjSTORd4K5CutbSpHCBJ6qdAiRsob2vJo9DU1jCQju LECRWUYCzmvFT9zVU8ckhMpCmGYL7SPg0SKYf0G/UJwA6BO8Lnv1Jt9tOckiWo5NwZZ3 3L8gQB1EHlkHGJ0DMypLOiukxv8cAfuPDOW2vSPoxnv5cu1yw9NR0ujjKfJEGHaqSjmX H0enPHd9ramEH/mtP+O8nCP8KqS3N1psRmMxbAJKQ8blvkYF9QZkTiDJiJNfeTVlEFvL MGSfHhQINmnwcH/nyyNs3rafYsDZSQY7XL9t25mO1u2j0nsy5tM707mq6O1xa3FYr0py G6QQ== 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=KGbd1HCZkESPXHV6DhMNyD4NGGGmDCpUh/kX6L77d6s=; b=quKsffnNyf3IjiOrcu/krkokrsnumT9wZxUV+o+GicxkiA0yyjlckgqKLlyO8c4UxG ZcogrS8zWx1NjQ7omWPnWvTxniqhs7BbwCFcGtBqgPcmFLVIMU1U43a7jFmLDAr1yo3g vNFGgAAyv/VpZeVKeOv1DKSk18xTSufLGFkc4UKf4nItLuI5LvdLHfISVk27ilr63g/X otomEpi1Vbky1FmlnJGDWDT13QSPGFzGaH67arzqTSHDd8tTWrwffQ9avgVXctBK8FAG Y+5uemF24TsrL2azNCGmja9VAKnu69Oj9HuY+2iFce8i/wwzPlHUZUQ+AxmwHcENfO/j TeNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=e6iDKd09; 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 31si3564703qtg.146.2017.08.29.13.50.03 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 29 Aug 2017 13:50:03 -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=e6iDKd09; 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]:46892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmnSS-0003J7-Vt for patch@linaro.org; Tue, 29 Aug 2017 16:50:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmnQe-0002Ql-DR for qemu-devel@nongnu.org; Tue, 29 Aug 2017 16:48:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmnQb-0001T6-Bh for qemu-devel@nongnu.org; Tue, 29 Aug 2017 16:48:08 -0400 Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]:35693) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmnQb-0001Sd-4W for qemu-devel@nongnu.org; Tue, 29 Aug 2017 16:48:05 -0400 Received: by mail-pg0-x236.google.com with SMTP id 63so13982379pgc.2 for ; Tue, 29 Aug 2017 13:48:03 -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=KGbd1HCZkESPXHV6DhMNyD4NGGGmDCpUh/kX6L77d6s=; b=e6iDKd099sO/PmP1khqC49DVXSsyYPfs+YDwAso364ebCrNE5/sgG8c2wIQpIXAHfF aWrlFPJuOUTtGITZecFDsX+MYBBNTPQZ7JgsQL9z6GF9QFsgh5NM2ovKdr+VFB+7pNff tI50+rllQhx3gC8Hzh1AihYnfCApLTmKBXw5Q= 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=KGbd1HCZkESPXHV6DhMNyD4NGGGmDCpUh/kX6L77d6s=; b=cMulix+WBGRexKNMKQMQdCMLfppaQjtafgNo/R7fi27sAc1Y0w0uGoAyJuUm6l9Rau 0ZTl0D0OUhGpeJ/8KKKna+xH08jWKJuKELY6nl04UXs/WuJgk3wbvCJu8BLysmxchEsh S46+dJ0snHTqtOTVGCnxcDswGjcw+DYp7Z0TMk2dd2RkYfD8EOGAzP4wpq1pUYB3yXmr 9ImiJ5yAv1rfgq2WHr+OQtRX7zR8QSY2xRrOMUV7XhywVdUsEykdTrvQod5APDT8q+1v lmMe6yf6Y3ehJFFrFoWcR0408yhkEfkJff0ULB+sVUGUsemN3hEFWJTaySAdSHSgmSAV DDww== X-Gm-Message-State: AHYfb5jeBn4ByDMYWgZzk5J7pYOP22tYPzSJnJh2O9Mt2QcmJqlyb7Ca XRRZD+5w+oXwrcqtgqEfEA== X-Received: by 10.101.91.2 with SMTP id y2mr1546864pgq.66.1504039682114; Tue, 29 Aug 2017 13:48:02 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-108-236.tukw.qwest.net. [97.126.108.236]) by smtp.gmail.com with ESMTPSA id i84sm6633646pfj.139.2017.08.29.13.48.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Aug 2017 13:48:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 29 Aug 2017 13:47:51 -0700 Message-Id: <20170829204759.6853-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::236 Subject: [Qemu-devel] [PATCH 0/8] tcg/s390 improvements 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: borntraeger@de.ibm.com, cohuck@redhat.com, agraf@suse.de Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This finally converts s390 to the tcg_target_op_def function, which allows constraints to vary at runtime. Once we have that, we can (1) Perform some facilities checks once during startup instead of every time we evaluate the constraint, (2) Use the distinct-operands facility from z196. In addition, two cleanups to the setcond expansion (3) Use the load-on-condition-2 facility from z13, (4) Use a smaller expansion for LE/LEU using SLBGR. I wrote these after soft freeze and before I changed jobs, so it has seen some testing. Unfortunately, I no longer have access to s390 hardware, so I'd appreciate it if someone could re-test this rebase. r~ Richard Henderson (8): tcg/s390: Fully convert tcg_target_op_def tcg/s390: Merge cmpi facilities check to tcg_target_op_def tcg/s390: Merge muli facilities check to tcg_target_op_def tcg/s390: Merge add2i facilities check to tcg_target_op_def tcg/s390: Merge ori+xori facilities check to tcg_target_op_def tcg/s390: Use distinct-operands facility tcg/s390: Use load-on-condition-2 facility tcg/s390: Use slbgr for setcond le and leu tcg/s390/tcg-target.h | 2 + tcg/s390/tcg-target.inc.c | 700 +++++++++++++++++++++++++--------------------- 2 files changed, 380 insertions(+), 322 deletions(-) -- 2.13.5 Acked-by: Cornelia Huck