From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id 427B83858D1E; Tue, 25 Apr 2023 06:21:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 427B83858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682403689; bh=Hg4jm1JVU0iAGbuuUcuLFm+uEZ0O4qaFUFrk5XDaA5I=; h=From:To:Subject:Date:From; b=Z/ppW8cuYBJgTmKs1Il5zKzxVbzW/mrUEVUagwMOC9XtyKsjL752/57t4eLmNvoW4 LpCDJWgOMC1Sdurraa79jWBfjReVLUh1ms2a/yqsqPu9LZFmEBIHLqdCvV0+/5aYyq 8lietnJRxLJ5k826iPtndEAJJ/Jz4yx/7ASaqi/Y= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-210] [PATCH v2] testsuite: Add testcase for sparc ICE [PR105573] X-Act-Checkin: gcc X-Git-Author: Sam James X-Git-Refname: refs/heads/master X-Git-Oldrev: 966bd96ff78ccf29f37acc6d1fbce50fb96b7836 X-Git-Newrev: a4916881b74c36c613a8a7abe040bb197ea8ba75 Message-Id: <20230425062129.427B83858D1E@sourceware.org> Date: Tue, 25 Apr 2023 06:21:29 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a4916881b74c36c613a8a7abe040bb197ea8ba75 commit r14-210-ga4916881b74c36c613a8a7abe040bb197ea8ba75 Author: Sam James Date: Tue Apr 25 08:20:29 2023 +0200 [PATCH v2] testsuite: Add testcase for sparc ICE [PR105573] r11-10018-g33914983cf3734c2f8079963ba49fcc117499ef3 fixed PR105312 and added a test case for target/arm but the duplicate PR105573 has a test case for target/sparc that was uncommitted until now. 2023-04-21 Sam James PR tree-optimization/105312 PR target/105573 gcc/testsuite/ * gcc.target/sparc/pr105573.c: New test. Diff: --- gcc/testsuite/gcc.target/sparc/pr105573.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gcc/testsuite/gcc.target/sparc/pr105573.c b/gcc/testsuite/gcc.target/sparc/pr105573.c new file mode 100644 index 00000000000..14043a5fdad --- /dev/null +++ b/gcc/testsuite/gcc.target/sparc/pr105573.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -mvis3" } */ + +int *UINT_sign_args, UINT_sign_steps; +int *UINT_sign_ip1; + +void UINT_sign() { + char *op1 = (char*) UINT_sign_args; + int os1 = UINT_sign_steps, i; + for (; i; i++, op1 += os1) { + unsigned in = *(unsigned *)UINT_sign_ip1; + int *out = (int*) op1; + *out = in > 0; + } +}