<br>Hello. <br><br>I have been trying to check, how llvm works on Solaris recently. <br>First I have tested lli, whitch seems to execute the bytecode generated<br>on Linux without any problems. However, llc has failed to generate valid <br>
SPARC assembler code even on the helloworld example. Here is the generated code:<br><br><br>sakharov@trillian:~$ cat ./test.s<br><br><br> .text<br> .align 16<br> .globl main<br> .type main, #function<br>
main:<br> save %o6, -96, %o6<br> sethi %hi(.str), %l0<br> add %l0, %lo(.str), %o0<br> call puts<br> nop<br> sethi 0, %i0<br> restore %g0, %g0, %g0<br> retl<br> nop<br>
<br><br> .section .rodata.str1.1,"aMS",@progbits,1<br> .align 2<br> .type .str,#object<br> .size .str,15<br>.str:<br> .asciz "this is a test"<br><br><br>sakharov@trillian:~$ /opt/SUNWspro/bin/cc test.s -o test<br>
/opt/SUNWspro/prod/bin/fbe: "test.s", line 19: error: invalid character (0x40)<br>/opt/SUNWspro/prod/bin/fbe: "test.s", line 19: error: quoted-string operand required<br>/opt/SUNWspro/prod/bin/fbe: "test.s", line 19: error: statement syntax<br>
cc: assembler failed for test.s<br><br><br>I think I could fix llc -march=sparc , just tell me where to start and what are other known <br>bugs for 2.5 release. <br><br>-- <br>Best regards, <br>Fedor Sakharov<br>