From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 107AF3846410 for ; Thu, 25 Apr 2024 11:23:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 107AF3846410 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 107AF3846410 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::633 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714044227; cv=none; b=OjYXch/+yKnKltH0tI01wr7RfgalVuZsOQtsxItjJe33A0dq1Nm0Cj4gjROhPTM+Z4pg4PFgQ3RGFjoHthOPq3r0TsuvM8+3pA+FvIls/C328xhcugu6R2bomRT10tDvO66RSYRTonJGQqOMQd+4C2SP0eyYMMQn2DsuOh6d6rI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714044227; c=relaxed/simple; bh=bWpMYTMOMG3Fif/2W/K1tMd+5EPpB8qda/tudy14P+I=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=Zsqnfedqph42iabmFtJjAq3CGdnpyfwJgF+12vJslbJWl5AJxuQKOeva7U+lugfvsMcnMtJXrArkvLBYixUHjcALZ04icvwd1hE0rBqK29s/xeWwXdkgFefwZZMCA/bAYCrG3WW94W5M12Ky2v9vYxSSkk/3DnjcKPDhBVc7diA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a58872905b5so101107966b.2 for ; Thu, 25 Apr 2024 04:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714044224; x=1714649024; darn=gcc.gnu.org; h=content-transfer-encoding:subject:from:to:content-language:cc :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=sBLrOOTi/KvtUqsKvmgdyQAz+iHkehfHic3km8iCSNM=; b=Egtq8cmyiqF8vmd+wvyBPfBCm0/TwiidYy8wbM3G8yY3chPdtJ0fZxhLo/w24A4lCq kx9yH3iXrS7WDVinZvWJveSVnEj+1ulO93ikpN1XZ5/9kmg/w9Ds3sqYoNzMs2iRoAJS czrWindmY0Xc3GK3+V4MlfMK3yrcD8UeQGOthdsBG3FxNyTACKeDtTtValLaV4XqpnaJ c5XrSturJ61YU/YhoIVIUj+s+9E8pTxy8WXnkdtIuaTu/VxGcNIYVG2pSrRPKE2Mo98S qTGGs0WMLOa+MbHNrNUafAyphmOsJF+fK4P5hsHWCs/ZFPb4BHOtCNkLXgYRFaok6QZV etEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714044224; x=1714649024; h=content-transfer-encoding:subject:from:to:content-language:cc :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=sBLrOOTi/KvtUqsKvmgdyQAz+iHkehfHic3km8iCSNM=; b=YrUbz6H0Bo0VURRh/czmZDxQlOocZZ+V4fTl6Xed0p13blodFjdazkR2ctyxY2r4Bd YQ4Q1T7jkMaR7kZ0PgvyIfdGwNTMW/wGKojizNIcF3oD6dp33LOML3StYmKlVDfREG8u m6BwYwbu7Pexnc71WTaO9iilIZRsfSwVeHEKjcUcEakwNMaCqP7fgDgg5ztWzVIZ4z2U NPKYMGx8uSKEET3Agz2+qO8NtkhcH28TWwm3+hUfnwGQgUngo8s103BJdPDEvAjPTCo3 +IhXwf8HYGrSWi4xu4q6dfRLb32pCogvz07ZWMcsbATGP8uiSjo7gDBKdqGQLZpO4Q3R QesA== X-Gm-Message-State: AOJu0YyJ6QNXmF0B5jx6FiWXps5QXgD2WIoNByt/bNibLC71PWy4x2tM n3axUpvI0VFBOXSitWbuHB5wgp3rkqMlBPEXp12u0AmGpP5F3FzR7PNOXA== X-Google-Smtp-Source: AGHT+IGtQ+zdWtwMnUcTNaGVWhRWYtxkF2YBjuyDOrHYFdSr0+DwbFWsxxCDpiLzq2LSZ+LYF8tI7g== X-Received: by 2002:a17:906:2894:b0:a52:6636:a22 with SMTP id o20-20020a170906289400b00a5266360a22mr3326869ejd.65.1714044223878; Thu, 25 Apr 2024 04:23:43 -0700 (PDT) Received: from [192.168.1.23] (ip-149-172-150-237.um42.pools.vodafone-ip.de. [149.172.150.237]) by smtp.gmail.com with ESMTPSA id my19-20020a1709065a5300b00a58be29ad7bsm268056ejc.136.2024.04.25.04.23.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 04:23:43 -0700 (PDT) Message-ID: <557c596b-4648-4645-99bd-a301ec5c99f5@gmail.com> Date: Thu, 25 Apr 2024 13:23:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: rdapp.gcc@gmail.com, palmer , Kito Cheng , "juzhe.zhong@rivai.ai" , jeffreyalaw , Patrick O'Neill Content-Language: en-US To: gcc-patches From: Robin Dapp Subject: [PATCH] RISC-V: Add testcase for PR114749. Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,KAM_SHORT,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 List-Id: Hi, this adds a test case for PR114749. Going to commit as obvious unless somebody complains. Regards Robin gcc/testsuite/ChangeLog: PR tree-optimization/114749 * gcc.target/riscv/rvv/autovec/pr114749.c: New test. --- .../gcc.target/riscv/rvv/autovec/pr114749.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/autovec/pr114749.c diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr114749.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr114749.c new file mode 100644 index 00000000000..6733b0481a6 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr114749.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv_zvl128b -mabi=lp64d -fwhole-program -O3 -mrvv-vector-bits=zvl" } */ + +extern int a[]; +extern char b[]; +int c = 24; +_Bool d[24][24][24]; +_Bool (*e)[24][24] = d; +int main() { + for (short f = 0; f < 24; f += 3) + for (unsigned g = 0; g < (char)c; g += 2) { + a[f] = 0; + b[g] |= ({ e[f][f][f]; }); + } +} -- 2.44.0