From patchwork Mon Mar 4 14:02:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 1907638 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=h6EqImpT; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TpL555Z9Hz23hX for ; Tue, 5 Mar 2024 01:03:21 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3CFB1385842C for ; Mon, 4 Mar 2024 14:03:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by sourceware.org (Postfix) with ESMTPS id 3990F3858D28 for ; Mon, 4 Mar 2024 14:02:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3990F3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3990F3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::232 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709560980; cv=none; b=PFJTXSLah02uRAWWmCDoF1UyBAQ91rY2HtncSqsPATIJeL2tXXW68TxRKxtTfDmKrLKFSGQaKyIcUYNIzOx0Frw2L3AlR9NTVpV3IN9EHWB2BF7whogkOq13GjrzQ844GSSP5Ewt9bcFBWFzB8pDCUvpMLEty2vYlD5GoFqYEas= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709560980; c=relaxed/simple; bh=Fpr80XsZBznhQUC07dDFFaRA97PWHx2gEROCr0jornY=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=v7wEdXpZviT1PV6H3s/1eHP+GXgYKyrL6+Sc7PJn3Jamq8G9TttHfCsvkZNE46cAhaJwdYcUJ0Mjf/tuLcEPrBPlhX+ifq0kUxroHFkDIBzdi3GO0cpPT3kRwDOZBjoS9cXsRJfhPSm/i/OalPkU9wjJQWMzwO/dwtnvDyh93QE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3c1af1e8b7eso2351676b6e.2 for ; Mon, 04 Mar 2024 06:02:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709560969; x=1710165769; darn=gcc.gnu.org; h=subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=QDTFysgEG+mdKgrvkZgfxju3olG9pHbETKWvNSe7m10=; b=h6EqImpTytdeFJ+h0QkRVNZZ2MG7nv5d/SfAo0kUnbS015OHozVTvKFNIg/NNANwNC bW2bMqIPe3QOQp7NiBqReS8gRcLgsef1tfX9CnGuiAIyXyCm89/xLN5fT3O6paRo3cBo X7udglcZgDJRR3k7dKyB/Ut2bX2p3ePd/TT34pkOoFKNXVED+FA0/tF93o5Gx1ucXT73 D5TTN6DNMcBE8y3SvlOdciDwp2TbvKv57PyuVGKyqygmEoBH43d0zNeZQ9JXGhz3aEjl IreWx5mBUGy88ZqRRGZvUDWkUX8Eju7uDYZrKszROkYaoSTJ6d379TCR302nzI95oE66 dkKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709560969; x=1710165769; h=subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QDTFysgEG+mdKgrvkZgfxju3olG9pHbETKWvNSe7m10=; b=HXSF/0TIn0gEcCYNy9DDkXfaPYwulXngXxlBiPp4q2AnhNkL0isVFiHIxmiLGQGBF6 DgqISzGSQYWv5x0KPOnoxSbEKbt3d6oyP/KsXQfUTHy9XkL1kvu2LFe6Reni2a5pC9ed 1GZvSbZet3WcrPemCAnBkrqYXb/EGX//ebZ5bDK4Y3N1l1WgIXYUHEnt+ORWcnpOAlch G/ww1eBZe2yQZpkDEFkpoHJKwWzqhIE4019of7amuobREoWiYu+nUF1m+W4a8Qts5F6h nSRbtFq75dUQoQSWqUy0Q99M8FNJU+/ckyvUEs4VRIm1m2cftRLqWRf14a9kAat6ZYEu R0hQ== X-Gm-Message-State: AOJu0YwcO2w9PQHQvpQEFHSph8e4CHCkb4k486oXz3oiaAbUDTf6YjkB q83o2OXnOO3JVKl7fxNoe91puxWFNIqABg0rxAbpPutL2ZI6U6d28Rk1zVK/i8A= X-Google-Smtp-Source: AGHT+IEFWYrvgoEqB2Tu4z+RTs2nAI4p0OVHkmbonQ02DPhg45NVgEx8Ib7H19wjDJqqSjn8iiEwZg== X-Received: by 2002:a05:6808:2087:b0:3c1:f569:45c8 with SMTP id s7-20020a056808208700b003c1f56945c8mr937559oiw.41.1709560969016; Mon, 04 Mar 2024 06:02:49 -0800 (PST) Received: from [172.31.0.109] ([136.36.72.243]) by smtp.gmail.com with ESMTPSA id r39-20020a056808212700b003c1e667c446sm614735oiw.49.2024.03.04.06.02.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 06:02:48 -0800 (PST) Message-ID: <9bd21e23-31e0-4217-bd5a-2976a1dca800@gmail.com> Date: Mon, 4 Mar 2024 07:02:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Content-Language: en-US To: "gcc-patches@gcc.gnu.org" Cc: Jan Dubiec From: Jeff Law Subject: Fix 201001011-1.c on H8 X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Excerpt from gcc.sum: [...] PASS: gcc.c-torture/execute/20101011-1.c -O0 (test for excess errors) FAIL: gcc.c-torture/execute/20101011-1.c -O0 execution test PASS: gcc.c-torture/execute/20101011-1.c -O1 (test for excess errors) FAIL: gcc.c-torture/execute/20101011-1.c -O1 execution test [ ... ] This is because H8 MCUs do not throw a "divide by zero" exception. gcc/testsuite * gcc.c-torture/execute/20101011-1.c: Do not test on H8 series. Pushed on Jan's behalf. Thanks, Jeff commit bd6e613c115c758f961999770acedc92d44d6950 Author: Jan Dubiec Date: Mon Mar 4 06:59:07 2024 -0700 Fix 201001011-1.c on H8 Excerpt from gcc.sum: [...] PASS: gcc.c-torture/execute/20101011-1.c -O0 (test for excess errors) FAIL: gcc.c-torture/execute/20101011-1.c -O0 execution test PASS: gcc.c-torture/execute/20101011-1.c -O1 (test for excess errors) FAIL: gcc.c-torture/execute/20101011-1.c -O1 execution test [ ... ] This is because H8 MCUs do not throw a "divide by zero" exception. gcc/testsuite * gcc.c-torture/execute/20101011-1.c: Do not test on H8 series. diff --git a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c index d2c0f9ab7ec..9fa10309612 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c @@ -26,6 +26,9 @@ #elif defined (__RX__) /* On RX division by zero does not trap. */ # define DO_TEST 0 +#elif defined (__H8300H__) || defined (__H8300S__) || defined (__H8300SX__) + /* On H8/300H, H8S and H8SX division by zero does not trap. */ +# define DO_TEST 0 #elif defined (__aarch64__) /* On AArch64 integer division by zero does not trap. */ # define DO_TEST 0