Thank you in advance.
I am a beginner and trying to run Clang-LLVM for RISCV target machine for Bitmanip extension.I have some doubts regarding the Clang flags used for bitmanip like experimental-zbb.
Currently we have built LLVM using Embescom LLVM and their riscv-bitmanip branch.The following was the way I compile and run the code.
clang -O -c hello.c --target=riscv64
riscv64-unknown-elf-gcc hello.o -o hello -march=rv64imac -mabi=lp64
spike pk hello
Using this compilation after generating the assembly using the following I could not find bitmanip instructions generated like bext,bseti ,etc.I was getting these instructions generated in assembly by using gcc12.
I have used the following
riscv64-unknown-elf-objdump -d -S hello.o
to generate the assembly from the object file which is generated from ClangLLVM.
Which are the flags I need to use to get riscv bitmanip instructions in the assembly file?
Is this the right way to run Clang-LLVM for riscv -bitmanip instructions?
Could you suggest a way to generate assembly from the compilation step itself?
Also it would be helpful if anyone could help me with a beginner tutorial for LLVM development like printing ,intermediate code file and debugging LLVM.
I could not find LLVM bitmanip support for ratified in original LLVM repo.Is there a branch for bitmanip instructions in it?
Thanks & Regards