Re: some seemingly redundant register uses in nios gcc compiled assembly code

2005-09-06 Thread Ian Lance Taylor
Liu Haibin <[EMAIL PROTECTED]> writes: > Does the following rtl implicitly indicate that r5 is used? > > (expr_list (use (reg:DF 6 r6)) > (expr_list (use (reg:DF 4 r4)) If DFmode requires two registers on your machine--which does appear to be the case based on the assembly code which you

some seemingly redundant register uses in nios gcc compiled assembly code

2005-09-06 Thread Liu Haibin
Hi, I compiled the following code using nios gcc -da -O3 (gcc version 3.3.3) #include #define PI (4*atan(1)) double rad2deg(double rad) { return (180.0 * rad / (PI)); } In .s file, it has some codes like this mov r4, zero movhi r5, %hiadj(107269324