From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3F9B383F84C; Sun, 14 Jun 2020 07:18:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3F9B383F84C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592119120; bh=DpeG/J0cXsVeNkpIfPRVEcTELbbQGC1DkdSAGQi8D9M=; h=From:To:Subject:Date:From; b=aZskUWMwistXNiJNiAE442jUpw7KzpMwQu29FwXmShyp10F2Z9Dd9aR1exK3hV6JH Zy86PpLXKDD7/xC1k5zFWkvHHGiYvABjN7SZQ6y2aYrhSYOvaAVGjzBar7KWO69wmy XqGliG77kPeMndwt0Cz9KXUIf7APSwUSSUmWtqp0= From: "chengcongxiu at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/95668] New: patching the commit of SVE on GCC7.3, But fail in test Date: Sun, 14 Jun 2020 07:18:40 +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: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chengcongxiu at huawei dot com 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 attachments.created 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2020 07:18:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95668 Bug ID: 95668 Summary: patching the commit of SVE on GCC7.3, But fail in test Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: chengcongxiu at huawei dot com Target Milestone: --- Created attachment 48727 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48727&action=3Dedit The gcc as follow: The test as follow: void foo (int * restrict in, int * restrict out, int s) { for (int i =3D 0; i < 16; i++) { for (int j =3D 0; j < 6; ++j) out[j] =3D in[j]; in +=3D 6; out +=3D s*6; } } using gcc compile above test: .cfi_startproc movi v5.2s, 0 add w2, w2, w2, lsl 1 ldr q16, [x0] lsl w2, w2, 1 ldr q7, [x0, 16] sbfiz x2, x2, 2, 32 orr v4.8b, v5.8b, v5.8b=20=20=20=20=20 orr v3.8b, v5.8b, v5.8b orr v2.8b, v5.8b, v5.8b orr v1.8b, v5.8b, v5.8b ldr q6, [x0, 32] orr v0.8b, v5.8b, v5.8b orr v25.8b, v5.8b, v5.8b orr v24.8b, v5.8b, v5.8b ins v4.s[60], v16.s[61] //this instruction error: ins v5.s[60], v16.s[63] ins v3.s[60], v7.s[63] ins v2.s[60], v7.s[61] ins v1.s[60], v6.s[63] add x5, x1, x2=