[llvm-bugs] [Bug 48679] New: How can I generate SVE vectors with LLVM
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 6 18:57:58 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48679
Bug ID: 48679
Summary: How can I generate SVE vectors with LLVM
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: yangzh.fnst at cn.fujitsu.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Hello,
LLVM always generate NEON vectors, but I want it generate SVE vectors. How can
I do this?
clang version 11.0.0
example.c:
#define ARRAYSIZE 1024
int a[ARRAYSIZE];
int b[ARRAYSIZE];
int c[ARRAYSIZE];
void subtract_arrays(int *restrict a, int *restrict b, int *restrict c)
{
for (int i = 0; i < ARRAYSIZE; i++)
{
a[i] = b[i] - c[i];
}
}
int main()
{
subtract_arrays(a, b, c);
}
command:
clang --target=aarch64-linux-gnu -march=armv8-a+sve -O3 -S example.c
Thanks
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210107/e7e84d25/attachment.html>
More information about the llvm-bugs
mailing list