Message ID | 20181005180201.11387-8-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 739df333dc8853ae6578492675a26a601d6be077 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp772341lji; Fri, 5 Oct 2018 11:21:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV63yRO2UOibSmotY+GKy2KflaDXONl3wZvjggSNlN1PzjZ4BSTw6Up9BvsHJmN6WhP9woLUC X-Received: by 2002:a0c:9e2a:: with SMTP id p42-v6mr2134993qve.134.1538763701336; Fri, 05 Oct 2018 11:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538763701; cv=none; d=google.com; s=arc-20160816; b=I+ca3r73DRMZhIrthGoHI+Ckp2seOemYXoNFQRsmpMG2fCxoG0LVjmIL1S6v7+U4uS iRuEkDpKl+D7LBiD4UzFpEYqid0lylzUu1qpdmeOah5LPfYqcuiuklt7iXDLEmJHygOW /fUfZ/ULuwTgMgzw/7HNl6IvQ0WCTmSDg9nEaaUfe81ufKnul3V34nlgpM0ofXa5h9K6 12OE+hhT5Vu5UVEFFCOroWi0GXEhOzMf9G5cOxRUZTfeGb01x06w7ZJIxSx4lAc3OYvW 4AQ/30wm3TM/MqoBsl/5q7j0FKk0z93l9DADCChbLegBi9w7dq0jlxZQX2hjy6i+AKQs lC6Q== 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=MiYu2qxs2TIckutvBEbRpqLjWZytY+tnsLPRmBRwkMs=; b=QODqgteuHscStToGi/6PKUsjA5q3LodRCf9Znho4wC2l6FK/0FhcVPIFC1A8/9mT2B zZ3IhGqxxmfpjro0ojoDo4SuPdI/yfUI8fTQ8Ks6xjr0qk+3QfXX6IUsrcApDcxBCUZ3 nIAN1bupkc9irsScyLnEz7wpsb6SYZ8JVVynvmbVCd86DWg6iODN3Haonq0GwCAelBM6 6H7VBCfo1Y/7yHNH+Xs7dATwLpsg3oYKBlL/WhZXHChYznZqemCBm0JafUoCDAjB02cj r0wlgvZ6iYAsOJ8b9NXBZfne/cplE3XdrTAx9g3I++8vCmtKrkS5+x+CVsukPtll9znG O0Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=JBQSauyq; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id y10-v6si6315810qtm.166.2018.10.05.11.21.41 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 05 Oct 2018 11:21:41 -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=JBQSauyq; 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]:36496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1g8UjM-0003bF-Qm for patch@linaro.org; Fri, 05 Oct 2018 14:21:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1g8UQg-0000Ww-Kb for qemu-devel@nongnu.org; Fri, 05 Oct 2018 14:02:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1g8UQe-0004zE-53 for qemu-devel@nongnu.org; Fri, 05 Oct 2018 14:02:22 -0400 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]:44313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1g8UQd-0004qk-Ot for qemu-devel@nongnu.org; Fri, 05 Oct 2018 14:02:19 -0400 Received: by mail-oi1-x242.google.com with SMTP id u74-v6so11073086oia.11 for <qemu-devel@nongnu.org>; Fri, 05 Oct 2018 11:02:19 -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=MiYu2qxs2TIckutvBEbRpqLjWZytY+tnsLPRmBRwkMs=; b=JBQSauyqkxppjxVmfbo7j+LZgi/zJ3N7wXVYcPQYEGxix4kz3JI9qf6C5KneW3dyiN zZAKTeTqwbiHLyuZWy2oXUMzJ80wb8+ekzOXakeL7AKznrIStlKJuwfdVm0ld2ICrViG dXiZw/vWWFqdEdqVayfDP4e8QbTJCabWtopes= 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=MiYu2qxs2TIckutvBEbRpqLjWZytY+tnsLPRmBRwkMs=; b=D/nYQAyUFjVo5MJbBgwMw6DkoHP0Pto3dE2YZn/5A2/iDilY5dlQnphb6HH8hFS9Xb swDraKtW0oqkCeHT89bCTwu4Gwf2NN4rGixll5UDV4/t74QbbR8/Rkfj4cJjLFsx56nu RbvDcTgM4gXTWPjjzO13gRWROPNbo4tE8AaYD0DArzBWpH2g73XRkbxJ4HdK9PqS/h5V PzR5otBwso5cgYaYnzqKi693AX2+arUSpLdc/QWfI36p4FEPXRslmz9bRbDZD+dDTqwB +ttnDzlT3Ujs3k4NVV30wINA4MXU8GWzV2pKQkG3KSP2ulHZsnqoU10Yk7L150uI2/id iaaA== X-Gm-Message-State: ABuFfojbHWJUu29jAompkcX4j5CfzQCSnEYhNJp2YDq8k+pWCrxIPW/p DUriQ2kaK9nJFvq3YiOUpTGaGkGsKJWWs+ZMUqI= X-Received: by 2002:aca:f512:: with SMTP id t18-v6mr34715oih.244.1538762538473; Fri, 05 Oct 2018 11:02:18 -0700 (PDT) Received: from cloudburst.twiddle.net ([187.217.230.84]) by smtp.gmail.com with ESMTPSA id d37-v6sm2601302otb.0.2018.10.05.11.02.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Oct 2018 11:02:17 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Fri, 5 Oct 2018 13:02:00 -0500 Message-Id: <20181005180201.11387-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005180201.11387-1-richard.henderson@linaro.org> References: <20181005180201.11387-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::242 Subject: [Qemu-devel] [PULL 7/8] softfloat: Specialize udiv_qrnnd for s390x 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@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
softfloat queue
|
expand
|
diff --git a/include/fpu/softfloat-macros.h b/include/fpu/softfloat-macros.h index 39eb08b4f1..eafc68932b 100644 --- a/include/fpu/softfloat-macros.h +++ b/include/fpu/softfloat-macros.h @@ -641,6 +641,12 @@ static inline uint64_t udiv_qrnnd(uint64_t *r, uint64_t n1, uint64_t q; asm("divq %4" : "=a"(q), "=d"(*r) : "0"(n0), "1"(n1), "rm"(d)); return q; +#elif defined(__s390x__) + /* Need to use a TImode type to get an even register pair for DLGR. */ + unsigned __int128 n = (unsigned __int128)n1 << 64 | n0; + asm("dlgr %0, %1" : "+r"(n) : "r"(d)); + *r = n >> 64; + return n; #else uint64_t d0, d1, q0, q1, r1, r0, m;