From patchwork Tue Nov 5 15:03:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 840813 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp35935wru; Tue, 5 Nov 2024 07:05:04 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW7W5ofcCX76vi2ETrxmq65aoI4CjOq5tSIB802a5ZYBhB43zcH1iKty7UQcD7dLFjj2hAKJA==@linaro.org X-Google-Smtp-Source: AGHT+IGaKMiXPbdKMvp76H00Vv1TbE5hsXAuYaknk5ARLnp9ixid8CxjcMuxX1QE4IP0lzSEvlCc X-Received: by 2002:a05:620a:24c2:b0:7b1:3e41:8495 with SMTP id af79cd13be357-7b2fb9aac8dmr2411255285a.48.1730819104761; Tue, 05 Nov 2024 07:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730819104; cv=none; d=google.com; s=arc-20240605; b=Bx4HtBgKLIvC0WtoW8qo2i6YfEpMb8pnaYO7aycyylVFaEi8RuS/pzJSLnkSj5MQoI buNA3DRwsze0JRcPy2Gb3Wt8YLJdiTl9MfJJrXwAbkWyWcq8+jRDeJiBi+T54UX/F5hF 2CBbG8y9e3Gz++Kw0liQvVa+WD0w9q8jlXeqSSmHROVr6eOfpB06xW+5KG17OqPw6k8f OAnYhtGOPRuF33WVO2ol025oaIDE+glO+uhEw8jPo3FvCoX7QcpLB/nKqqV7P3znMxAy xscpdOeO97Y7LQacaCSY7aItDf6XEaoQoLOpAMMs1+q7kuuG3DcsYpr9HQLs/aF4GUOC 1TaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cYHCRBRNBPe/0uEKc6Z5yhuwEHOYnf7f6KwnFwUGwXc=; fh=m3bIYSMZqCABEJVkIKLKf3tNf8TH8EKhZ9yqNwsZqDo=; b=X93E3Eur2eGgZEzgy9OWVufVdGD/dgJQL/m2eHGW08pcVjeKqZdtRRZHjCnlVTcK9Y wAYDw1lgUSuDsDCFluNpTOsaex6JIK9R+U8AGT9cNm6EiF77m32jhF84lyU8KMm5Yxnd ZMp24t0ZdP7A0iQW9qDziwZDJnd2Tf4mXWrzGcr8icG1g5pfAN8ZB4rgHnWwi1ZN4BRR WdAyyj3pzZiQ8e01jHzKj63ZVkVUJhUSuV4BKP15YqQklQQ6HTE3I7CQw8AjoogqP+Hl 0oiTLaBcWae5A2ZTpGPqk8x9MryuYYZe63sWeqiNJrWrReGy4UgtCruHW2U/Me826zpp QbZQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hesJf0YH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b2f3ab145dsi1354146885a.577.2024.11.05.07.05.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Nov 2024 07:05:04 -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=pass header.i=@linaro.org header.s=google header.b=hesJf0YH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8L6N-0000rX-Br; Tue, 05 Nov 2024 10:04:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8L64-0000qH-Ns for qemu-devel@nongnu.org; Tue, 05 Nov 2024 10:04:00 -0500 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8L61-0000rx-VP for qemu-devel@nongnu.org; Tue, 05 Nov 2024 10:03:55 -0500 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-539e63c8678so6341206e87.0 for ; Tue, 05 Nov 2024 07:03:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730819032; x=1731423832; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cYHCRBRNBPe/0uEKc6Z5yhuwEHOYnf7f6KwnFwUGwXc=; b=hesJf0YHdpm2v5OKr3xFaOTvd4cTajDt/iMA7AS0XNsKnT/DS6HCb5TO97ui1Li3pJ kedEgvzwxSZ3oRz9hRLPXUqthYTG5JlS26dNwrZ2zEKh/UcjIx8rbfhIkA1uBYa5c/+N FLD4r89JO+Z1NK7pdNh+Ugjjl5QgU2Xfaw1BRRobVkHCAEgJcaC/AzQdO6aMtzHvMiQG wanLw5Rq1Y4cT0DOdqrH4UaJdbdtAFtbNgnH49GB1ADL97fV3b7g9ZMSrucSvUwk6R6C 4ONaNf6LZm1DrT8O1e88cyCj2macncv99mSd69hB6xBmzZy7f1Sg7sLnG/XtziSQLoGe m3ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730819032; x=1731423832; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cYHCRBRNBPe/0uEKc6Z5yhuwEHOYnf7f6KwnFwUGwXc=; b=NB4B1JStJsvTdDvNzn6+j6tNebk430cCMDcAWZBdR2YKqg4bU0fW+15U0E0e61uIqA X5ZZVvypDkGP5jUpF20ezExlzkDcxIvpBBKwooib5SxaNk822HQVTshgrRJ6ezwXokx9 KkZKk1uaUSEzL5bOOHsQM4NePNO4jF3f6tPYmIAti34PZA+PQ9oL/pSCNBGLrUUMBusL wlSRjxIX8P7O47WcznVinqNRPqnlgYEFHtt5sR4pgCuaJy/CSMEpCz7zgaR/squIi7oT LqUHB2YSyS6lvOWHkwhElWtMHzJN0VcCXUmdIjwl7384Wz5Ieof9fDLxsBPD5jJjLQNr 1eKw== X-Gm-Message-State: AOJu0YzpkSKdq4+tWzr0vXF00io7kCbXC33N4FNUYDs1HeoYgS19Q7BE Yq6WiuBfHuTszYfzCbJdkMvy3MKY7wXagsdpPdWRVAlgzDFxDBZEm5Jg2lRdThL9JEUUxuyiLCU 5HU8= X-Received: by 2002:a05:6512:2243:b0:53b:1f7a:9bfd with SMTP id 2adb3069b0e04-53d65e17196mr8140531e87.52.1730819031889; Tue, 05 Nov 2024 07:03:51 -0800 (PST) Received: from stoup.. ([154.14.63.34]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-431bd9ca6f8sm221301855e9.39.2024.11.05.07.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 07:03:51 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Ilya Leoshkevich , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 1/4] tests/tcg: Replace -mpower8-vector with -mcpu=power8 Date: Tue, 5 Nov 2024 15:03:45 +0000 Message-ID: <20241105150348.446982-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241105150348.446982-1-richard.henderson@linaro.org> References: <20241105150348.446982-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x132.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Ilya Leoshkevich [1] deprecated -mpower8-vector, resulting in: powerpc64-linux-gnu-gcc: warning: switch '-mpower8-vector' is no longer supported qemu/tests/tcg/ppc64/vsx_f2i_nan.c:4:15: error: expected ';' before 'float' 4 | typedef vector float vsx_float32_vec_t; | ^~~~~~ Use -mcpu=power8 instead. In order to properly verify that this works, one needs a big-endian (the minimum supported CPU for 64-bit little-endian is power8 anyway) GCC configured with --enable-checking (see GCC commit e154242724b0 ("[RS6000] Don't pass -many to the assembler"). [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109987 Signed-off-by: Ilya Leoshkevich Acked-by: Alex Bennée Reviewed-by: Richard Henderson Message-ID: <20241023131250.48510-1-iii@linux.ibm.com> Signed-off-by: Richard Henderson --- tests/tcg/ppc64/Makefile.target | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/tcg/ppc64/Makefile.target b/tests/tcg/ppc64/Makefile.target index 1940886c73..0d058b2600 100644 --- a/tests/tcg/ppc64/Makefile.target +++ b/tests/tcg/ppc64/Makefile.target @@ -6,7 +6,7 @@ VPATH += $(SRC_PATH)/tests/tcg/ppc64 config-cc.mak: Makefile $(quiet-@)( \ - $(call cc-option,-mpower8-vector, CROSS_CC_HAS_POWER8_VECTOR); \ + $(call cc-option,-mcpu=power8, CROSS_CC_HAS_CPU_POWER8); \ $(call cc-option,-mpower10, CROSS_CC_HAS_POWER10)) 3> config-cc.mak -include config-cc.mak @@ -23,15 +23,15 @@ run-threadcount: threadcount run-plugin-threadcount-with-%: $(call skip-test, $<, "BROKEN (flaky with clang) ") -ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),) +ifneq ($(CROSS_CC_HAS_CPU_POWER8),) PPC64_TESTS=bcdsub non_signalling_xscv endif -$(PPC64_TESTS): CFLAGS += -mpower8-vector +$(PPC64_TESTS): CFLAGS += -mcpu=power8 -ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),) +ifneq ($(CROSS_CC_HAS_CPU_POWER8),) PPC64_TESTS += vsx_f2i_nan endif -vsx_f2i_nan: CFLAGS += -mpower8-vector -I$(SRC_PATH)/include +vsx_f2i_nan: CFLAGS += -mcpu=power8 -I$(SRC_PATH)/include PPC64_TESTS += mtfsf PPC64_TESTS += mffsce