-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xtheadvector fp16 conversion intrinsic caused crash in optimized build #24
Comments
compiling for c908v with rvv-1.0 + zvfh works fine, using the same compiler and qemu riscv64-unknown-linux-gnu-gcc -march=rv64gcv_zfh_zvfh_xtheadc -mabi=lp64d -static fp16.c -o fp16-v -O2
qemu-riscv64 -cpu c908v ./fp16-v |
I want to reproduce the error, can you help me to check is this case right?
|
toolchain download https://www.xrvm.cn/community/download?id=4382928864901402624 |
This issue can also be reproduced using upstream gcc without xtheadc extension, optimized gcc git commit b43bb6591f7f934f9807a2cae3b53fdbe8d27169 riscv64-unknown-linux-gnu-gcc -march=rv64gc_xtheadvector fp16.c -o fp16 -O2 -static
qemu-riscv64 -cpu c906fdv ./fp16
a = -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7
a = -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7
Segmentation fault (core dumped) |
It seems have the alignment problem, when I set
|
I'm very sorry to let you encounter this problem, because in the new version of the compiler we as much as possible to reuse the community's RVV 1.0 framework, so we need to deal with many differences 1.0 RVV. Although we dealt with it as best we could, there were obviously still some omissions. Regarding this problem, it is because the XTheadVector did not handle the logic of vsetvl properly and still simply reused RVV 1.0. In RVV 1.0, the Thanks again. |
reported to upstream https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118357 |
gcc-mirror/gcc@8d577a0 may fix this |
Sorry. The patch is to solve the bug of RVV 1.0, not for this issue. I will try to fix this problem in the near future. |
Xuantie-900-gcc-linux-6.6.0-glibc-x86_64-V3.0.1
Xuantie-qemu-x86_64-Ubuntu-20.04-V5.0.4-B20241127-1130
output
minimal test
The text was updated successfully, but these errors were encountered: