Message ID | 7bba5f77-eb27-44bb-b169-414654ad7119@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> 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=f2qul4lg; 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 4WTGGt441Jz1yZw for <incoming@patchwork.ozlabs.org>; Wed, 24 Jul 2024 11:13:10 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7830D385841E for <incoming@patchwork.ozlabs.org>; Wed, 24 Jul 2024 01:13:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 288CE3858D29 for <gcc-patches@gcc.gnu.org>; Wed, 24 Jul 2024 01:12:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 288CE3858D29 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 288CE3858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::235 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721783566; cv=none; b=HslHJUkdXrfTnJo0mb6ve5s5V6H19C5MCgxabheK26s7bGNJvgwllHIszAI8jk7ag+zByY8p7yiX9GV00CStExicKjE4sIXnMEtTaI1fjR9sjp1WKQw9Dp6+TQ2LFSBgq3RG/B+BLLUSoGSqitkoJ5tQx2IzczZrRaVMV0nvxl4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721783566; c=relaxed/simple; bh=kD6gasECm/2VRQzl1KV8RJ1PNdqdT1eyZY0/21FBypA=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=FSUA44TONAiEKQePQdXi3pEtLhy7o7saCxroaG407RA9x7Kbrc9M0dYFytUmyFNdxTph3QV3atr8WpZYH0IGagjV6LZnDojEkghGhTb/w1DGgA4n33XSo9bVCHs0eorRrqUQElNbvv3haDOzjc/D7y9RVDJ6cFJ1vYFMwXh2oWQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3d9306100b5so3727093b6e.1 for <gcc-patches@gcc.gnu.org>; Tue, 23 Jul 2024 18:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721783563; x=1722388363; darn=gcc.gnu.org; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=LpvrbgzdCSYuMAwgpJOR1JV0viNdYXYTiO2FcuD2TqM=; b=f2qul4lg/lMIK/o9x4+sr2dZWEOrrbFa3CM42Vj/Js/L1XuI0Xy1hm2r6dsZjedi11 rbrVmJhGl5yJieXQAeH8f/roD50a9hL0tdECoKBU4zeIOJ3b+mOTd4K6urAX0SzR9MOU Pg1m7CILK54z4tLyTv4XgDiGVrYO+EA7zfSKRltisyhpTgOxtZzk5gev4jt085n8MH6p 5Emf2DryN59nGI/FDmIriRnsmn3Ugttnp8yFMg1AUAVZgzBcN1XCyseUrqq0xUcjCBwQ tdAly99Se+WFaXrTfw0hjsFH0uYJ4ZckjWXk3KJaAdracLiJdW1vJTSfsyDnEmpZUCz7 z8ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721783563; x=1722388363; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LpvrbgzdCSYuMAwgpJOR1JV0viNdYXYTiO2FcuD2TqM=; b=APIYr92+NtPx7eAYxxq43Wym79Ai+6r8XeP15ROLjZQ6CcI0GeWtJoMME9j2cFli/n v1JYNdRxkKOLmClfpuNm2ZEpZBmtApsIe5cX8fbF+q5JsYWVl5sgWncEZ35hQySRUFWA PNhXg3+Kt6fY9FVWj6l/SHiOENqUvobccb+2ia4uKoozo015nwWD9tcB6+rt5zl9Tzzc XC5IgxmpuN1FTwIDgiofC9Q8v3wM5F6MrdBwT4OqF2074Luvqq2yRMjNslAsptaOMNbW Ycm9sKx585yNCqHkmfC/5KbY3FBdYaWYKglXUQaV7K/fFxouMJWRN92hMrD0wirovHOI jwJw== X-Gm-Message-State: AOJu0Yw+6iPomKnw72WodS35vfUWSfcQ2maaow+qJ0NoTxZicHoFQNFV Jp2BgTNUfiQpx8cMR28/kj5VzrhIS8gwU2S35IbX2dE+oqAqjLbBTS5dRQ== X-Google-Smtp-Source: AGHT+IGaz0KBDXOc2qCMi3drS0aFfP9D6qv+XsxmQVLyqn7sdTvENbdQvev1EVTqNHE0fiiuIHQllg== X-Received: by 2002:a05:6808:1301:b0:3d2:2833:73e6 with SMTP id 5614622812f47-3db06e28c20mr1898851b6e.46.1721783562940; Tue, 23 Jul 2024 18:12:42 -0700 (PDT) Received: from [172.31.0.109] ([136.36.72.243]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3dae096b494sm2237793b6e.6.2024.07.23.18.12.41 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Jul 2024 18:12:42 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------arp0b8c1uxVLcwawougVp1Zd" Message-ID: <7bba5f77-eb27-44bb-b169-414654ad7119@gmail.com> Date: Tue, 23 Jul 2024 19:12:41 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Content-Language: en-US To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> From: Jeff Law <jeffreyalaw@gmail.com> Subject: [committed][PR rtl-optimization/115877][6/n] Add testcase from pr115877 X-Spam-Status: No, score=-8.2 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 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 <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~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[committed,PR,rtl-optimization/115877,6/n] Add testcase from pr115877
|
expand
|
diff --git a/gcc/testsuite/gcc.dg/torture/pr115877.c b/gcc/testsuite/gcc.dg/torture/pr115877.c new file mode 100644 index 00000000000..432b1280b17 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr115877.c @@ -0,0 +1,20 @@ +/* { dg-do run { target int128 } } */ + +char a[16]; +unsigned short u; + +__int128 +foo (int i) +{ + i -= (unsigned short) ~u; + a[(unsigned short) i] = 1; + return i; +} + +int +main () +{ + __int128 x = foo (0); + if (x != -0xffff) + __builtin_abort(); +}