[committed] Fix signed char test assumption [Was Re: [Linaro-TCWG-CI] gcc-17-2261-g649b2a6d9f9f: 7 regressions on arm]
| Message ID | fd3dee60-dedf-4d97-aebe-846d7a6e0b85@oss.qualcomm.com |
|---|---|
| State | Committed |
| Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 30F514BA2E24 for <patchwork@sourceware.org>; Fri, 17 Jul 2026 13:17:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30F514BA2E24 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=TxW3mltM; dkim=pass (2048-bit key, unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=HOS1nLEF X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by sourceware.org (Postfix) with ESMTPS id 673F94BA2E0C for <gcc-patches@gcc.gnu.org>; Fri, 17 Jul 2026 13:17:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 673F94BA2E0C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oss.qualcomm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 673F94BA2E0C Authentication-Results: sourceware.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784294229; cv=none; b=BS+ZRP/JqAv3k0uETK/2dZseeb/bsI+9vqmE3u90Z2ZW2konSZXUmmY+kI3/H985mUv65lDQC2Ie+re1YcdAlehmD3vHz3URO4vN86dTbsE5t3n+d1SZc1yvR07lmIFCG3Aunhos6HTZFBKpIoncwrsMsfFK8Hl3o/SHe4l1JyM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784294229; c=relaxed/simple; bh=n+hqlhbSjGpixyCPGnw9sfOTqJIicaM5BEIb2j8WpoI=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version: Subject:To:From; b=NnKym/Cyu+hzmo7zLr3RN/3IopoWxeRxALNWwYRJCwqp3rm/6hYg5QPm/wmBCrZTRnER7HbYR+DXiupOWG1FdPgH9ebyj2tICKUzb1Is6z++XXZ6k5v5N7X5SdsKI8tJKoWJa6B8QkhrtMop5GJTOq37d4NDo/gfUjxqxpJmgjY= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=TxW3mltM; dkim=pass (2048-bit key, unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=HOS1nLEF DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 673F94BA2E0C Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66HCT6Ib2903116 for <gcc-patches@gcc.gnu.org>; Fri, 17 Jul 2026 13:17:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=wowjLmLx/2ZFw9KrUA7sKTlW Mi+gFmFq/ATQXc+Ptyg=; b=TxW3mltMB0JEfZMWuabwU/09geaIM/cL5KjUpJcP ekqKA0NWXrXOyOo+IMWulmVD3L4YwYE+H1foKmZoOspC0Fr3qX51dCl7niC49AIy fgxYkGH4KtxnP4whFk3S3VgTmkplpkYaOFQk6Nerzju0MLeMEoxrHNW4MEY3V3CR B53gro0y0s2kXxuMXEk5gf/Ar/ztmGuURFI1vu4qoM7+yBn5yf2PuWEaBfSM70Tz EL8aV4VkjLzfN/etVVejXYQ9r2UckZFSzi5vq17xU2IOHxw+sLetdRPoP1MwvgJf 3o/+LSjRLsv5Q+LtvVeAwmuGklJK4NDVsMVrbRf2FY6qiA== Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ff3u6kurq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for <gcc-patches@gcc.gnu.org>; Fri, 17 Jul 2026 13:17:07 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-c856470fe9fso4009753a12.2 for <gcc-patches@gcc.gnu.org>; Fri, 17 Jul 2026 06:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784294226; x=1784899026; darn=gcc.gnu.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=wowjLmLx/2ZFw9KrUA7sKTlWMi+gFmFq/ATQXc+Ptyg=; b=HOS1nLEFPDtgEPc7SF4zVs7jYx/kHnwZgemydM63NAQlhn1pI7yZk9ExD0tgp4LCqB 6VlMXvhQZsEraWrmxbqAeRxvvKTZpuelcn87Lw6W91xYh6w+6tZ8nWjhdPU8fqTLH9aX RD2+57cqdLaO0ldFspEBFk0kyNgKXyS28KlAVxK3e+3QIkra+HTtJa8zDsX3rTcBlxig PSUdC8Mdj3sgBu9vEttT+dDvolIwSLoFp6YjuTAJngCIyr4ldLRJYBdavlPXRHXwYqG6 5IX3mcLLcXF0re/ovs0QUYpqKjzCL/ia2qpjFTBAHR7zWONnNjnKrVficzIdVzGEySWk mgtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784294226; x=1784899026; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=wowjLmLx/2ZFw9KrUA7sKTlWMi+gFmFq/ATQXc+Ptyg=; b=Oz3qUKjCde+q8kLSAX5Q8m0HQE7b2nCDYjunj8C1JMlm2hXdGhtZjuP0nO6Z2qgY3q bHKnbraXucN+oyVojW5KhFwVBh1JUJjHUEqewniWDKvwSFX/OQz3L7OMERfEAA8uAfJQ ZZw0f73dgWvQDltk7SeGfT1moqj14O1BUB8xKBjI5PPG9keX4ol/jgUzHZBENZS+NZ+l K5ph+2EJoMNrN087bR2BMzF0TQdvNd9HsQ1ap0B/VsjlhObpfZw+TKOwpnlKRlZtS6nQ 8T0eSaqrhSeqvGluVez12DLtvIZArgysR7yDWvgcwddIskMHRU5Uki6GuIj5Clb8FqkD FMzQ== X-Forwarded-Encrypted: i=1; AHgh+RpmuJHk+icftZTEDNk6D+J54+vttxpxP8hsigh6Owx3lgKmNWNjF3kDWgSZN5C0B/G7XWbbx32LCrcEaQ==@gcc.gnu.org X-Gm-Message-State: AOJu0YxC0T+OX9M7u7LvIj1k7M+8rkXQ4ymjPgnr9DBU36c7YGjVa85e 1soMYoK8ESbLpGSfxXNF4RswTbsJLLlZnWemDxxZMFn9Z5oRrrJRAd4Vk5L5HexW4WvgpbKnpbl gMSZewDmP7ljZdmuIOsX/OQf0etbwmmDu4XDVtyMysPF5Qh8cM3Ss1II8IXaV X-Gm-Gg: AfdE7clSWjklhR5OAarWFTUn2EmeBt7jY4or7VzBzYuaqMsEr2i3EX8fV+gvNZgpTlD 4VUKCf2eE0BGc1l7yhmeR++8xDWE5c3qMDDI6nVPgvotljlXNcy/NXIfM9rAOj4fhk3fojjmJ2f jkAPVWA1T9hrC7VMbOuzgu2Aj5vYxP5TAm0KchXiCUY1n9MTykBJejTs78RiHljeOwNhD17mLm3 JHr89yslna6khVR8NVmheBf9C/tOXEKL4TbmV6QhrIIDv56JXbF27yTk8WquucCy0qNFWnQp1I5 Cjm9y5fWrEnbE+kY7B98K38aFbd3QOHXjDlSvuMXoOAkgeiwue0oAoZ4d7DAnh2xYNdjgGlJtMR Dv8fWY07zPgDjtaTYkMmgHaJJ2+yI X-Received: by 2002:a17:90b:240f:b0:38e:5741:5173 with SMTP id 98e67ed59e1d1-38e5741517cmr173026a91.29.1784294226272; Fri, 17 Jul 2026 06:17:06 -0700 (PDT) X-Received: by 2002:a17:90b:240f:b0:38e:5741:5173 with SMTP id 98e67ed59e1d1-38e5741517cmr173000a91.29.1784294225683; Fri, 17 Jul 2026 06:17:05 -0700 (PDT) Received: from [172.31.0.31] ([136.38.201.137]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3142a1ddeb6sm8959245eec.20.2026.07.17.06.17.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jul 2026 06:17:04 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------aj8LiTJOM8SRmIwip4xx2J0N" Message-ID: <fd3dee60-dedf-4d97-aebe-846d7a6e0b85@oss.qualcomm.com> Date: Fri, 17 Jul 2026 07:17:03 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [committed] Fix signed char test assumption [Was Re: [Linaro-TCWG-CI] gcc-17-2261-g649b2a6d9f9f: 7 regressions on arm] To: linaro-toolchain@lists.linaro.org, 'GCC Patches' <gcc-patches@gcc.gnu.org> Cc: gcc-regression@gcc.gnu.org References: <1087072791.73325.1783637784419@72d3563a6d18> Content-Language: en-US From: Jeffrey Law <jeffrey.law@oss.qualcomm.com> In-Reply-To: <1087072791.73325.1783637784419@72d3563a6d18> X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE3MDEzNCBTYWx0ZWRfX0t2yRecs8EfP wLrsHC4ewQrD82ZGHguc8NWjCfTRidYd03T+T356FP+rs78rvPhBYkpDP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oint-GUID: 5t13NjOWaTuDoOKdym1j7N9dyLxj32g1 X-Proofpoint-ORIG-GUID: 5t13NjOWaTuDoOKdym1j7N9dyLxj32g1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-17_03,2026-07-17_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 adultscore=0 priorityscore=1501 spamscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607170134 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_PBL, SPF_HELO_NONE, SPF_PASS, TXREP shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
| Series |
[committed] Fix signed char test assumption [Was Re: [Linaro-TCWG-CI] gcc-17-2261-g649b2a6d9f9f: 7 regressions on arm]
|
|
Checks
| Context | Check | Description |
|---|---|---|
| linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 | fail | Patch failed to apply |
| linaro-tcwg-bot/tcwg_gcc_build--master-arm | fail | Patch failed to apply |
| linaro-tcwg-bot/tcwg_simplebootstrap_build--master-aarch64-bootstrap | fail | Patch failed to apply |
| linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap | fail | Patch failed to apply |
Commit Message
Jeffrey Law
July 17, 2026, 1:17 p.m. UTC
On 7/9/2026 4:56 PM, ci_notify@linaro.org wrote: > Dear contributor, > > Our automatic CI has detected problems related to your patch(es). Please find some details below. > > In armv8l-unknown-linux-gnueabihf native, after: > | commit gcc-17-2261-g649b2a6d9f9f > | Author: Jeff Law <jeffrey.law@oss.qualcomm.com> > | Date: Wed Jul 8 12:30:56 2026 -0600 > | > | [PR rtl-optimization/126136] Fix dest = cond ? x : -1 when STORE_FLAG_VALUE is -1 > | > | So a while back I added support for selecting x/-1 into the ifcvt.cc by using > | scc and a couple ALU operations. That code explicitly rejects STORE_FLAG_VALUE > | if it is not 1 or -1. > | ... 20 lines of the commit log omitted. > > Produces 7 regressions: > | > | regressions.sum: > | Running gcc:gcc.dg/torture/dg-torture.exp ... > | FAIL: gcc.dg/torture/pr126136.c -O0 execution test > | FAIL: gcc.dg/torture/pr126136.c -O1 execution test > | FAIL: gcc.dg/torture/pr126136.c -O2 execution test > | FAIL: gcc.dg/torture/pr126136.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test > | ... and 3 more > > Used configuration : > *CI config* tcwg_gcc_check armv8l-unknown-linux-gnueabihf > *configure and test flags:* none, autodetected on armv8l-unknown-linux-gnueabihf--disable-multilib --with-float=hard --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --with-fpu=neon-fp-armv8 > > We track this bug report under https://linaro.atlassian.net/browse/GNU-1959. (Require Linaro login) Please let us know if you have a fix. As others noted, this is a case where the test assumed signed chars. The patch makes the signedness explicit. Bootstrapped and regression tested on armv7 and verified the test now passes on that platform. Pushing to the trunk. jeff gcc/testsuite * gcc.dg/torture/pr126136: Make chars explicitly signed.
diff --git a/gcc/testsuite/gcc.dg/torture/pr126136.c b/gcc/testsuite/gcc.dg/torture/pr126136.c index cc270f51ca2..0ab01a45d49 100644 --- a/gcc/testsuite/gcc.dg/torture/pr126136.c +++ b/gcc/testsuite/gcc.dg/torture/pr126136.c @@ -3,7 +3,7 @@ int i; __attribute__ ((noipa,noclone,noinline)) -char foo(char val) +signed char foo(signed char val) { i++; if (i > 1)