[llvm-dev] Runtime error

Varun Patil via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 22 21:57:25 PDT 2016


Hi Developer,

I have wrote simple program called test.c as follows.





*int a, b;int main() {a=10;b=10;return a+b;}*

Compiled with clang command to produce test.ll file which is attached below,
*$clang -cc1 test.c -emit-llvm*

 Now If I want to run with my own target for selection with *llc* with
command as follow getting error,






*COMMAND:$ ./llc -view-dag-combine1-dags -march=toy -relocation-model=pic
-filetype=asm ~/test.ll ERROR:./llc: /home/varun/test.ll:14:18: error:
expected comma after load's type  %2 = load i32* @a, align
4                 ^*
Please Help me with It.

Thanks and Regards
Varun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160923/43aa773e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.ll
Type: application/octet-stream
Size: 798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160923/43aa773e/attachment.obj>


More information about the llvm-dev mailing list