From patchwork Thu Apr 19 13:58:59 2018 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: 901239 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Yu5hCit9"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40RhNw0MqNz9s1w for ; Fri, 20 Apr 2018 00:35:44 +1000 (AEST) Received: from localhost ([::1]:51058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9Aez-0005RZ-P1 for incoming@patchwork.ozlabs.org; Thu, 19 Apr 2018 10:35:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9ANX-0004mT-Fm for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:17:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9ANU-00068x-5L for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:17:38 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:38511) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9ANT-00068H-Uf for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:17:36 -0400 Received: by mail-wr0-x242.google.com with SMTP id h3-v6so14534057wrh.5 for ; Thu, 19 Apr 2018 07:17:35 -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 :mime-version:content-transfer-encoding; bh=o4H2aEHrCUWjd65LdAgAbF6cZHgmMOMeakm1BTDNz9M=; b=Yu5hCit9RuckPO96XD6kGc9Gn6z7vlkWXDwLdKCye3YCCGIXKQRG0Fg5aKExDrIL6s tIdJ80SM+Q9dy37EZmrwVfyEmEVhTu6RX+p0dVnUOYvdIi7gixJBI2PDzjaJamP1igDs ibJIRYpqtx7mv/gdig7fUF2HpfD6Fh3usCV5g= 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=o4H2aEHrCUWjd65LdAgAbF6cZHgmMOMeakm1BTDNz9M=; b=WMJtNYYHqII6dlpc9iWjQRzyaroh0/EipGoauxtvTnTsGnup9LxTAvd4Mhb5ldj0jN yeajThBf+lXJA4TxvMjMSvHcTPY/SdnRGFJQKpOPWHUUSlDvTp4t8PTsOTjs/r8m2foq aKbqze38/6g+idrt9CLX+I1lNDAKicz61DRu5gzXQwML0d1W1wqibSolwVtinAtuL+zW H9qSOWpYF2swhATdfGgFXeQ+w+Rrj3IwYLZUZ1m35OCejXwkQj/5HXktP4LY1pS2NDKt 2B2BgyE+tjfMUs3qckHF8nz62VCRi7kJHGXLV0o3WSDkAW1Cdg3sNp75qHF2Y6ayRWkX W8Dw== X-Gm-Message-State: ALQs6tAYC1XzmRgIuaPuNP/DBlKQU8gef5b/jzfssAUuAiheuIcT/CKn Ui73Hrgy4edd+frPH5G1xLJsasizKSw= X-Google-Smtp-Source: AIpwx48MSDMiWL/aiSJZe5jcOVYW1JaPWQUGPJ2t4MiRgG1CmI/pTQgLmt7UlQMzDEh8ZVW3d9PiQA== X-Received: by 10.28.112.3 with SMTP id l3mr5048869wmc.90.1524147454874; Thu, 19 Apr 2018 07:17:34 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 11sm5011550wmr.16.2018.04.19.07.17.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 07:17:30 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9F4673E02CB; Thu, 19 Apr 2018 14:59:04 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Thu, 19 Apr 2018 14:58:59 +0100 Message-Id: <20180419135901.30035-42-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419135901.30035-1-alex.bennee@linaro.org> References: <20180419135901.30035-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:400c:c0c::242 Subject: [Qemu-devel] [PATCH v2 41/43] tests/tcg/multiarch: add fp-test into multiarch set 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" The compile for fp-test is a little funky as we need to include a build of QEMU's softfloat as well. There is still a problem caused by the inclusion of config-host.h by osdep.h as it will trigger problems like: In file included from /home/alex/lsrc/qemu/qemu.git/include/qemu/bitops.h:16:0, from /home/alex/lsrc/qemu/qemu.git/fpu/softfloat.c:87: /home/alex/lsrc/qemu/qemu.git/include/qemu/host-utils.h: In function ‘mulu64’: /home/alex/lsrc/qemu/qemu.git/include/qemu/host-utils.h:35:5: error: unknown type name ‘__uint128_t’ __uint128_t r = (__uint128_t)a * b; ^ When trying to cross build i386 on an x86_64 host. Signed-off-by: Alex Bennée --- tests/tcg/multiarch/Makefile.target | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Makefile.target index a691fd59d3..52adc18625 100644 --- a/tests/tcg/multiarch/Makefile.target +++ b/tests/tcg/multiarch/Makefile.target @@ -28,3 +28,21 @@ run-test-mmap: test-mmap -$(QEMU) -p 16384 ./test-mmap 16384 -$(QEMU) -p 32768 ./test-mmap 32768 +# +# Include the fp-test from the main test suite +# + +VPATH+=$(SRC_PATH)/tests/fp +VPATH+=$(SRC_PATH)/fpu +TESTS+=fp-test + +FP_CFLAGS := $(CFLAGS) -Wall -O0 -g -fno-strict-aliasing +FP_CFLAGS += $(QEMU_INCLUDES) +FP_CFLAGS += -D_GNU_SOURCE -DHW_POISON_H + +fp-test.o softfloat.o: %.o: %.c + $(CC) $(FP_CFLAGS) -c $< -o $@ + +fp-test: fp-test.o softfloat.o + $(CC) $^ -o $@ -lm -static +