From patchwork Tue Jan 22 21:50:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 156332 Delivered-To: patch@linaro.org Received: by 2002:a02:b531:0:0:0:0:0 with SMTP id l46csp34216jaj; Tue, 22 Jan 2019 14:00:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN7NSSQGjpcNIcs84PveeFQgYGVo6BRAIDrA59+ITA9D41xYD1GOLgJLCsdF46SVmrLC8mvM X-Received: by 2002:adf:a743:: with SMTP id e3mr33450674wrd.56.1548194426259; Tue, 22 Jan 2019 14:00:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548194426; cv=none; d=google.com; s=arc-20160816; b=KECXqs50dJglEwFVFhqi34cdDoVxVLlYVYYD/iJbU6DEMkP5SfXnxUbn4y2W9PWrqn AexPTsjYXIK76Egsax56wMX2rSLbyBxh3NKLZgyG6euCtjqXv+tuXBEMiqAoGNaY6dNa 4X5TcuR3T64sR7w55jISl36KwG7riQYWcLOWHYsBrXj6VMl0YCxlZC4Ae+jtOr+nfBIm GWXiJc1nRuyoOHqu8Ynqs2zT7WmBrFkTGEjyt5feuMKkPWvJnnmCqJUO5z8MLWgdUKWr UXLobSJn7hfZTSsclYO/aVOMjMaIXQs5bRmOQYHZj1Tb2cvRc3Y+42Cz34crlFnSIL9N TiOA== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=EAPNIESGsiwOeWgYA3ZDDIcXw7LSNCiic8+xiezNhwM=; b=QfQfKE9buRkqM6umxr2jvAE8KnEDsrRwxIvl8R4Ko+qpKMF6qIYufBIvXpjjZqY4Qb J33qs4aAzM7GU0rUHLckZksf5skov+FtsBzGflPXF5+nopTzR7RDrVFcee3xHPutSoJy FMK3a9Zxba5ViO99wQ5Z3doDbzwR59wSj6Dl/Rksko2+CTO1W5mK8zNLo8MB0wW2HFDl wuiVVXkx83++NgS7jUmAQl7sDS9W6YMSqtQyoXCT9+4fK63BMa6KnqQpTN83fD/T8l8k a4sEkTEJPXGJuKRxJo6+HY/ayXZFg7EsjL5t57JiAwnMh5vrlMTQSn3Ks2kH6J2lEIpM HCuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=P5S48D6l; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k81si35389556wmf.8.2019.01.22.14.00.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 22 Jan 2019 14:00:26 -0800 (PST) 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=P5S48D6l; 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]:50919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm45p-0007uV-1a for patch@linaro.org; Tue, 22 Jan 2019 17:00:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm3wQ-0007SU-99 for qemu-devel@nongnu.org; Tue, 22 Jan 2019 16:50:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gm3wP-0008FN-AO for qemu-devel@nongnu.org; Tue, 22 Jan 2019 16:50:42 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:45683) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gm3wP-0007qg-3e for qemu-devel@nongnu.org; Tue, 22 Jan 2019 16:50:41 -0500 Received: by mail-wr1-x441.google.com with SMTP id t6so46281wrr.12 for ; Tue, 22 Jan 2019 13:50:23 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=EAPNIESGsiwOeWgYA3ZDDIcXw7LSNCiic8+xiezNhwM=; b=P5S48D6lZDPHsZ0AYxDOU4oL63tRzp+9ifQhhFjoxgPxV2rL1gIuU4ZqEMKuOWwIFh gdJ3h5UxE5/edrHo6hropJxQpQZkGZRwYAOCqJEWLNXWntVSTie4f2rLqULQyiTrBckl G/ePlfhPc28IyBErMkBMDzDc/MyAgyvx6XEVQ= 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:mime-version:content-transfer-encoding; bh=EAPNIESGsiwOeWgYA3ZDDIcXw7LSNCiic8+xiezNhwM=; b=LEffwSmD7fZ0rnX2O5eEOswOM67MHrv1OG4wyD68Z7DDFdg9HyDwuzEnBOwLhEP1dF SRPWSrgGvaBn95Z/3PLfq5Idx8bxrJXsDwZHJ2f5+jBfHPXPw5brggGKUk2MtsBPUYmb nViChNDt38quRvlZB6It4XqnYC3xqB5TK/ApLYAbRqjZGaHTvKXN229LfYcCoz7dxk8H 7ICdgjhverGL5bA+r3GAvzfUXFB0SP8XkOaWxATDmWrmPTTOvbeLYNtV/HJTonvevq2o iPjm19pbm8kYTaHdNOZzxC9ohLA1kzxSJv1ex02cyr5Y9j04ie937UJqUAL14bxMTn8h DujQ== X-Gm-Message-State: AJcUukd6OVw2Ze2DZdA1QsfvS/c4EydQ6/rGVoJ+sRFAmMnOCWbsHVTc Ax3RULxJH+lG5QALfCjtfn6enA== X-Received: by 2002:adf:ff09:: with SMTP id k9mr33231940wrr.97.1548193822915; Tue, 22 Jan 2019 13:50:22 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y138sm64153926wmc.16.2019.01.22.13.50.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Jan 2019 13:50:19 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C00D13E0CD5; Tue, 22 Jan 2019 21:50:16 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 22 Jan 2019 21:50:13 +0000 Message-Id: <20190122215016.18697-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190122215016.18697-1-alex.bennee@linaro.org> References: <20190122215016.18697-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 Subject: [Qemu-devel] [PATCH v3 08/11] include/fpu/softfloat: Fix compilation with Clang on s390x 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 , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , Aurelien Jarno Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth Clang v7.0.1 does not like the __int128 variable type for inline assembly on s390x: In file included from fpu/softfloat.c:97: include/fpu/softfloat-macros.h:647:9: error: inline asm error: This value type register class is not natively supported! asm("dlgr %0, %1" : "+r"(n) : "r"(d)); ^ Disable this code part there now when compiling with Clang, so that the generic code gets used instead. Signed-off-by: Thomas Huth Reviewed-by: Richard Henderson Acked-by: Cornelia Huck Signed-off-by: Alex Bennée --- include/fpu/softfloat-macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/include/fpu/softfloat-macros.h b/include/fpu/softfloat-macros.h index b1d772e6d4..bd5b6418e3 100644 --- a/include/fpu/softfloat-macros.h +++ b/include/fpu/softfloat-macros.h @@ -641,7 +641,7 @@ 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__) +#elif defined(__s390x__) && !defined(__clang__) /* 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));