This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-mfpmath=387 flag does not prevent gcc from using SSE/SSE2 instructions


Hi,

gcc-3.2.3, glibc 2.3.1, binutils 2.13.2.1, target is x86_64

Even with -mfpmath=387 flag, compiler generates CVTSI2SD_VsdEd (SSE2 
instruction), probably while compiling the following source:

...
                printf("%-20s %9ld %9ld %9ld %3ld%% %s\n",
                                device,
                                (long) (s.f_blocks * (s.f_bsize / 
(double)KILOBYTE)),
                                (long) ((s.f_blocks - 
s.f_bfree)*(s.f_bsize/(double)KILOBYT
                                (long) (s.f_bavail * (s.f_bsize / 
(double)KILOBYTE)),
                                blocks_percent_used, mount_point);
...

I thought the behaviour would be not to generate any SSE/SSE2 instruction with 
this flag. Am I wrong, or could this be a (small) bug?

Thanks,
-- 
André Derrick Balsa (Andrew)
andrebalsa@mailingaddress.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]