[llvm-dev] [RISCV] Does "V" Extention come with "F" "D" "Zfh" Extentions?

DriveLife via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 29 02:58:16 PDT 2021


Hi all,
When I tried to run "opt -loop-vectorize" on a testcase, an "UNREACHABLE executed" error was received.
The full command is "./build/bin/opt -loop-vectorize -dce -instcombine -mtriple riscv64-linux-gnu -mattr=+experimental-v -debug-only=loop-vectorize -S llvm/test/Transforms/LoopVectorize/RISCV/basic-vec.ll"(basic-vec.ll as attachment).
Missing "+f" in "-mattr" is the reason of "UNREACHABLE executed" error.
The command "./build/bin/opt -loop-vectorize -dce -instcombine -mtriple riscv64-linux-gnu -mattr=+experimental-v,+f -debug-only=loop-vectorize -S llvm/test/Transforms/LoopVectorize/RISCV/basic-vec.ll" works well.
So can we assume that if a target has StdExtF, it also has StdExtF, StdExtD and StdExtZfh?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210329/b6b3ed2e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basic-vec.ll
Type: application/octet-stream
Size: 4347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210329/b6b3ed2e/attachment.obj>


More information about the llvm-dev mailing list