Alexander Herz
2010-Jan-28 09:31 UTC
[LLVMdev] llc generated assembly does not work with gcc 3.4.4
Hi, I tried that before, it produces .text ALIGN 16 .globl _main _main: ; @main ; BB#0: ; %entry subl $20, %esp movl $0, 16(%esp) movl 24(%esp), %eax movl %eax, 12(%esp) movl 28(%esp), %eax movl %eax, 8(%esp) movl $($_.str), (%esp) call _printf movl 16(%esp), %eax addl $20, %esp ret .data ; @.str $_.str: db "hello world\n\000" which is not digested by gcc. Alex Anton Korobeynikov schrieb:>> Well, can I enforce gcc compatible output somehow? >> > llc -x86-asm-syntax=att > >-- ------------------------------------------------------- Lehrstuhl I2 Seidl Sprachen und Beschreibungsstrukturen der Informatik Institut fuer Informatik Technische Universitaet Muenchen Boltzmannstrasse 3 85748 Garching http://www2.in.tum.de Telefon: +89 289 181806 Fax: +89 289 18161 -------------------------------------------------------
Chris Lattner
2010-Feb-09 01:41 UTC
[LLVMdev] llc generated assembly does not work with gcc 3.4.4
On Jan 28, 2010, at 1:31 AM, Alexander Herz wrote:> Hi, > > I tried that before, it producesAnton, the issue here is the 'isWindows' X86 sub-target. Should it just use the MCAsmInfo values as MingW? -Chris> > .text > ALIGN 16 > .globl _main > _main: ; @main > ; BB#0: ; %entry > subl $20, %esp > movl $0, 16(%esp) > movl 24(%esp), %eax > movl %eax, 12(%esp) > movl 28(%esp), %eax > movl %eax, 8(%esp) > movl $($_.str), (%esp) > call _printf > movl 16(%esp), %eax > addl $20, %esp > ret > .data > ; @.str > $_.str: > db "hello world\n\000" > > which is not digested by gcc. > > Alex > > Anton Korobeynikov schrieb: >>> Well, can I enforce gcc compatible output somehow? >>> >> llc -x86-asm-syntax=att >> >> > > > -- > ------------------------------------------------------- > Lehrstuhl I2 Seidl > Sprachen und Beschreibungsstrukturen der Informatik > Institut fuer Informatik > Technische Universitaet Muenchen > > Boltzmannstrasse 3 85748 Garching > http://www2.in.tum.de > > Telefon: +89 289 181806 > Fax: +89 289 18161 > ------------------------------------------------------- > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Anton Korobeynikov
2010-Feb-14 15:21 UTC
[LLVMdev] llc generated assembly does not work with gcc 3.4.4
Hi, Chris> Anton, the issue here is the 'isWindows' X86 sub-target. Should it just use > the MCAsmInfo values as MingW?Yes, it should. This was fixed in r96165 -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Possibly Parallel Threads
- [LLVMdev] llc generated assembly does not work with gcc 3.4.4
- [LLVMdev] llc generated assembly does not work with gcc 3.4.4
- [LLVMdev] llc generated assembly does not work with gcc 3.4.4
- [LLVMdev] llc generated assembly does not work with gcc 3.4.4
- [LLVMdev] llc generated assembly does not work with gcc 3.4.4