From nobody Wed Oct 29 09:06:51 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1524587604932747.1615327013557; Tue, 24 Apr 2018 09:33:24 -0700 (PDT) Received: from localhost ([::1]:59550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0se-00034J-4A for importer@patchew.org; Tue, 24 Apr 2018 12:33:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06A-0005Fx-Og for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB064-0000cB-Uk for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:18 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:55561) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB064-0000bn-Is for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:12 -0400 Received: by mail-wm0-x241.google.com with SMTP id a8so1933016wmg.5 for ; Tue, 24 Apr 2018 08:43:12 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o16sm10382800wmi.14.2018.04.24.08.43.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3DBEA3E1506; Tue, 24 Apr 2018 16:24:08 +0100 (BST) 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=rf0ei8V3A5rxkJwm6mG1f92eVz8GOA74iaEbajY8R+k=; b=ZFbHeEj/pW3TegroEs7uFX1Ij3/7EVMSJL00LNUcTgeh9yJct9PV5Yfk71LlgmEeJI k/oQnhziPKe/794Xu5CvLc1zjm4IJr+vpzQ866D+jEGLcE8/t7PwYfibjGWAQkFAiMZl R3+r5IYASTQfFClwH2BTfWZtgEQqtyGbinmCw= 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=rf0ei8V3A5rxkJwm6mG1f92eVz8GOA74iaEbajY8R+k=; b=SKcKIx4hWrI0Y5edU+aMaGYzuyK3y0aABE7FuuSxVkF8pB3fHzG87iBjUA8krPggWz bc0LKhk1PVsL/NA0UH8Z843uegIVYDB6ZGKvq6aH4oROGVsk8w44ZCl+XRzjLLuE3F8m 3yDA8mtguzQpSSd6/IiSdyoocu6mFoXt+gP+Y6dX7uehqVxKj1co6lWjsmsxE+6Rwmjw PfiER2R3uZcZEKxfWJiSOkdOfpjkV50iXDO5lAXKX/P2jyctHVH6k013a4Rou05bSZNu QayfiURgEagle/WohSWdCAILLHU4aTVtD1eimKxCVYxOuKZRqzV/q+5hMPC/nPFtMDVo AG3Q== X-Gm-Message-State: ALQs6tAePDp3Ld3w4AXoqECqblJDDYjS4EdJe/59azSKxG8btT6T6T28 Ed1/vOJ+msTNSkWsQ+ms+1vdxw== X-Google-Smtp-Source: AB8JxZo84c21wX74bFWJS+QvM/4t6cDcxbS8uV7jdWSzfjmqPpRr7A6BBZGavimXe6URwmRLS06XOg== X-Received: by 10.28.16.18 with SMTP id 18mr12962161wmq.81.1524584591397; Tue, 24 Apr 2018 08:43:11 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=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: Tue, 24 Apr 2018 16:23:55 +0100 Message-Id: <20180424152405.10304-37-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH v3 36/46] tests/tcg/alpha: add Alpha specific tests 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=20Benn=C3=A9e?= , qemu-devel@nongnu.org, Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 These tests are a little strange as they use their own crt.o stub instead of the system supplied one. We also disable the multiarch testthread test as that requires a dynamically linked build. Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/alpha/Makefile | 35 -------------------------------- tests/tcg/alpha/Makefile.target | 32 +++++++++++++++++++++++++++++ tests/tcg/alpha/{crt.s =3D> crt.S} | 0 3 files changed, 32 insertions(+), 35 deletions(-) delete mode 100644 tests/tcg/alpha/Makefile create mode 100644 tests/tcg/alpha/Makefile.target rename tests/tcg/alpha/{crt.s =3D> crt.S} (100%) diff --git a/tests/tcg/alpha/Makefile b/tests/tcg/alpha/Makefile deleted file mode 100644 index 2b1f03d048..0000000000 --- a/tests/tcg/alpha/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -CROSS=3Dalpha-linux-gnu- -CC=3D$(CROSS)gcc -AS=3D$(CROSS)as - -SIM=3D../../alpha-linux-user/qemu-alpha - -CFLAGS=3D-O -LINK=3D$(CC) -o $@ crt.o $< -nostdlib - -TESTS=3Dtest-cond test-cmov - -all: hello-alpha $(TESTS) - -hello-alpha: hello-alpha.o crt.o - $(LINK) - -test-cond: test-cond.o crt.o - $(LINK) - -test-cmov.o: test-cond.c - $(CC) -c $(CFLAGS) -DTEST_CMOV -o $@ $< - -test-cmov: test-cmov.o crt.o - $(LINK) - -test-ovf: test-ovf.o crt.o - $(LINK) - -check: $(TESTS) - for f in $(TESTS); do $(SIM) $$f || exit 1; done - -clean: - $(RM) *.o *~ hello-alpha $(TESTS) - -.PHONY: clean all check diff --git a/tests/tcg/alpha/Makefile.target b/tests/tcg/alpha/Makefile.tar= get new file mode 100644 index 0000000000..5b573f145e --- /dev/null +++ b/tests/tcg/alpha/Makefile.target @@ -0,0 +1,32 @@ +# -*- Mode: makefile -*- +# +# Alpha specific tweaks + +ALPHA_SRC=3D$(SRC_PATH)/tests/tcg/alpha +VPATH+=3D$(ALPHA_SRC) + +ALPHA_TESTS=3Dhello-alpha test-cond test-cmov test-ovf +TESTS+=3D$(ALPHA_TESTS) + +# Our own minimal crt.o, bypassing gcc's version +crt.o: CFLAGS+=3D-ffreestanding +crt.o: crt.S + $(CC) $(CFLAGS) -c $< -o $@ + +# Alternative build, linking against local crt.o +ALPHA_BUILD=3D$(CC) -o $@ crt.o $< -nostdlib + +hello-alpha: hello-alpha.c crt.o + $(ALPHA_BUILD) + +test-cond: test-cond.c crt.o + $(ALPHA_BUILD) + +test-cmov.o: test-cond.c + $(CC) $(CFLAGS) -DTEST_CMOV -c $< -o $@ + +test-cmov: test-cmov.o crt.o + $(ALPHA_BUILD) + +test-ovf: test-ovf.c crt.o + $(ALPHA_BUILD) diff --git a/tests/tcg/alpha/crt.s b/tests/tcg/alpha/crt.S similarity index 100% rename from tests/tcg/alpha/crt.s rename to tests/tcg/alpha/crt.S --=20 2.17.0