Ahmed Samara via llvm-dev
2018-Mar-02 12:01 UTC
[llvm-dev] Segmentation fault when using llc to target riscv.
I am using LLVM version 4.0.1 Running `llc -march=riscv64 math.ll` returns: #0 0x0000000000fed7d1 (llc+0xfed7d1) #1 0x0000000000fec559 (llc+0xfec559) #2 0x0000000000fec8d9 (llc+0xfec8d9) #3 0x00007f22c044e5e0 __restore_rt (/lib64/libpthread.so.0+0xf5e0) #4 0x0000000000d7faf3 (llc+0xd7faf3) #5 0x0000000000cd4b88 (llc+0xcd4b88) #6 0x0000000000cd530c (llc+0xcd530c) #7 0x00000000006858c3 (llc+0x6858c3) #8 0x000000000063c442 (llc+0x63c442) #9 0x00007f22bf031c05 __libc_start_main (/lib64/libc.so.6+0x21c05) #10 0x000000000067f08a (llc+0x67f08a) Stack dump: 0. Program arguments: llc -march=riscv32 math.ll Segmentation fault (core dumped) It works fine when I use any other argument for -march (x86, arm, arm64). -- Ahmed Samara M.S. Computer Engineering -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180302/4bdf031b/attachment-0001.html>
陳韋任 via llvm-dev
2018-Mar-14 13:37 UTC
[llvm-dev] Segmentation fault when using llc to target riscv.
LLVM 6.0 is out, why not try to latest one? 2018-03-02 20:01 GMT+08:00 Ahmed Samara via llvm-dev <llvm-dev at lists.llvm.org>:> I am using LLVM version 4.0.1 > > Running `llc -march=riscv64 math.ll` returns: > > #0 0x0000000000fed7d1 (llc+0xfed7d1) > #1 0x0000000000fec559 (llc+0xfec559) > #2 0x0000000000fec8d9 (llc+0xfec8d9) > #3 0x00007f22c044e5e0 __restore_rt (/lib64/libpthread.so.0+0xf5e0) > #4 0x0000000000d7faf3 (llc+0xd7faf3) > #5 0x0000000000cd4b88 (llc+0xcd4b88) > #6 0x0000000000cd530c (llc+0xcd530c) > #7 0x00000000006858c3 (llc+0x6858c3) > #8 0x000000000063c442 (llc+0x63c442) > #9 0x00007f22bf031c05 __libc_start_main (/lib64/libc.so.6+0x21c05) > #10 0x000000000067f08a (llc+0x67f08a) > Stack dump: > 0. Program arguments: llc -march=riscv32 math.ll > Segmentation fault (core dumped) > > > It works fine when I use any other argument for -march (x86, arm, arm64). > > > > -- > Ahmed Samara > M.S. Computer Engineering > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Wei-Ren Chen (陳韋任) Homepage: https://people.cs.nctu.edu.tw/~chenwj
Alex Bradbury via llvm-dev
2018-Mar-14 14:15 UTC
[llvm-dev] Segmentation fault when using llc to target riscv.
On 2 March 2018 at 12:01, Ahmed Samara via llvm-dev <llvm-dev at lists.llvm.org> wrote:> I am using LLVM version 4.0.1 > > Running `llc -march=riscv64 math.ll` returns: > > #0 0x0000000000fed7d1 (llc+0xfed7d1) > #1 0x0000000000fec559 (llc+0xfec559) > #2 0x0000000000fec8d9 (llc+0xfec8d9) > #3 0x00007f22c044e5e0 __restore_rt (/lib64/libpthread.so.0+0xf5e0) > #4 0x0000000000d7faf3 (llc+0xd7faf3) > #5 0x0000000000cd4b88 (llc+0xcd4b88) > #6 0x0000000000cd530c (llc+0xcd530c) > #7 0x00000000006858c3 (llc+0x6858c3) > #8 0x000000000063c442 (llc+0x63c442) > #9 0x00007f22bf031c05 __libc_start_main (/lib64/libc.so.6+0x21c05) > #10 0x000000000067f08a (llc+0x67f08a) > Stack dump: > 0. Program arguments: llc -march=riscv32 math.ll > Segmentation fault (core dumped) > > > It works fine when I use any other argument for -march (x86, arm, arm64).Hi Ahmed, Sorry for missing this post earlier. If you're interested in experimenting with the current state of RISC-V support in LLVM I'd strongly recommend building using LLVM HEAD. Note that RISC-V is still an 'experimental' backend (https://llvm.org/docs/DeveloperPolicy.html#new-targets), though we hope to pursue its promotion to 'official' prior to LLVM 7.0 branching. I intend to start that conversation within a month from now. Best, Alex