May I ask is there anything different in clang when compiling ir than to when compiling with llc.
In particular it seems to cause some problems with returning floats directly but only if they are over 8 bytes in size.
I added the ir as attachment when compiled on arm-macOS via:
It causes this code to not work correctly.
If compiled with llc and then linked with clang it works:
llc -filetype=obj trs.ll -o trs.o
clang trs.o -o trs
I yet have to find out why this happens when using clang directly. If anyone has a guess would be nice to know.
The same problem also happens in the backend which I’m currently helping with to develop here i though don’t know how to fix that as I can’t simply call llc as it’s using the llvm-c api todo all of this.
Link to IL Code => https://1drv.ms/u/s!Atg5BVAOHU2EgaBr2UaRfTgjUsUgHw?e=TmGbo5