From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 85D8E3858D20; Tue, 16 Jan 2024 11:23:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85D8E3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705404209; bh=1K8ClpClAq+SnGLNV9LD8xRDqYC5QqtQrw/1OoW20pE=; h=From:To:Subject:Date:From; b=kmewwZAjf8BbWve0VWNoQhV9eUpwfQbL7JxWAryXEY0WDXJgVKT1rCLsVYaZPGVcY Bc8HhAC6mNDBqVrFj82Ii8AGNciFJ0WBLGdvlV3TU5WAe4usYT09AVRpq3p6pfmp+Z IRNCcQiKLdfHwXWMJ545zqUOR8ZELO41ZPBRXJQU= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113420] New: risc-v vector: ICE when using C compiler compile C++ RVV intrinsics Date: Tue, 16 Jan 2024 11:23:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113420 Bug ID: 113420 Summary: risc-v vector: ICE when using C compiler compile C++ RVV intrinsics Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: juzhe.zhong at rivai dot ai Target Milestone: --- #include void matrix_transpose_intrinsics(float *dst, float *src, size_t n)=20 { for (size_t row_id =3D 0; row_id < n; ++row_id) { // input row-index size_t avl =3D n; // source pointer to row_id-th row float* row_src =3D src + row_id * n; // destination pointer to row_id-th column float* row_dst =3D dst + row_id; while (avl > 0) { size_t vl =3D __riscv_vsetvl_e32m1(avl); vfloat32m1_t row =3D __riscv_vle32_v_f32m1(row_src, vl); __riscv_vsse32(row_dst, sizeof(float) * n, row, vl); // updating application vector length avl -=3D vl; // updating source and destination pointers row_src +=3D vl; row_dst +=3D vl * n; } } } : In function 'matrix_transpose_intrinsics': :14:13: internal compiler error: in resolve_overloaded_builtin, at config/riscv/riscv-vector-builtins.cc:4614 14 | __riscv_vsse32(row_dst, sizeof(float) * n, row, vl); | ^~~~~~~~~~~~~~ 0x7fbb66a29e3f __libc_start_main ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Compiler returned: 1=