[Bug c/95668] New: patching the commit of SVE on GCC7.3, But fail in test
chengcongxiu at huawei dot com
gcc-bugzilla@gcc.gnu.org
Sun Jun 14 07:18:40 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95668
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=48727&action=edit
The gcc as follow:
The test as follow:
void foo (int * restrict in, int * restrict out, int s)
{
for (int i = 0; i < 16; i++) {
for (int j = 0; j < 6; ++j)
out[j] = in[j];
in += 6;
out += 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
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
More information about the Gcc-bugs
mailing list