Skip to content
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

[libclc][bug] The memory access instruction has an error in centos7.9 #117

Closed
Jules-Kong opened this issue May 10, 2024 · 0 comments · Fixed by #118
Closed

[libclc][bug] The memory access instruction has an error in centos7.9 #117

Jules-Kong opened this issue May 10, 2024 · 0 comments · Fixed by #118
Assignees
Labels
bug Something isn't working

Comments

@Jules-Kong
Copy link
Collaborator

Jules-Kong commented May 10, 2024

报错现象

Screenshot from 2024-05-10 17-39-31

复现命令

  • 为了便于在ubuntu中复现centos7.9的问题,做了初步分析并提供了中间文件nextafterf2.bc;
    bc_file.tar.gz

  • 复现命令
    可以参考,如下:

/home/kl/kl_ws/tsinghua_ws/ventus_ws2/llvm-project/install/bin/clang -DCLC_RISCV32 -D__CLC_INTERNAL -I/home/kl/kl_ws/tsinghua_ws/ventus_ws2/llvm-project/install/include -I/home/kl/kl_ws/tsinghua_ws/ventus_ws2/llvm-project/libclc/generic/include -target riscv32 -mcpu=ventus-gpgpu -cl-std=CL2.0 -I/home/kl/kl_ws/tsinghua_ws/ventus_ws2/llvm-project/libclc/generic/include -Dcl_khr_fp64  -ffunction-sections -fdata-sections -cl-no-stdinc -target riscv32-- -fno-builtin -nostdlib -I /home/kl/kl_ws/tsinghua_ws/ventus_ws2/llvm-project/libclc/riscv32/lib/compiler-rt -o CMakeFiles/builtins.link.riscv32--.dir/riscv32/lib/compiler-rt/nextafterf.bc.s -S  /home/kl/kl_ws/tsinghua_ws/ventus_ws2/llvm-project/build-libclc/CMakeFiles/builtins.link.riscv32--.dir/riscv32/lib/compiler-rt/nextafterf2.bc

初步分析

怀疑是否是下面代码,访存指令的处理存在问题:
Screenshot from 2024-05-10 18-08-57

@Jules-Kong Jules-Kong added the bug Something isn't working label May 10, 2024
ziliangzl added a commit that referenced this issue May 11, 2024
VastartStoreFrameIndex havn't initial value, caused issue Open #117
ziliangzl added a commit that referenced this issue May 15, 2024
VastartStoreFrameIndex havn't initial value, caused issue #117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants