[cfe-dev] Clang integrated Assembler 32 bit code gen

Harun Polat harun.polat at gmx.de
Mon Apr 29 16:40:11 PDT 2013


Hey,

is there any way to tell cc1as to generate 32 bit code instead of 64 bit?

I am getting the following errors:
/tmp/file2fwhWk:1674:2: error: invalid instruction mnemonic 'pushfl'
        pushfl ;popl %eax ;cli
        ^
/tmp/file2fwhWk:1899:2: error: invalid instruction mnemonic 'pushfl'
        pushfl ;popl %eax ;andl $0xFFFFFDFF,%eax;orl  %ecx,%eax;pushl
%eax;popfl ;
        ^
/tmp/file2fwhWk:1899:69: error: invalid instruction mnemonic 'popfl'
        pushfl ;popl %eax ;andl $0xFFFFFDFF,%eax;orl  %ecx,%eax;pushl
%eax;popfl ;

Tested pushfl and popfl with gas --32 and it worked but failed with --64.  

Thanks and best regards.



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Clang-integrated-Assembler-32-bit-code-gen-tp4031827.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list