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]

[Bug other/61979] Why float variable loading twice into the FPU Stack during condition checking ?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61979

--- Comment #8 from Srikanth <nasika.srikanth1 at gmail dot com> ---
#include<stdio.h>
int main()
{
 float m=12;
 m?printf("true"):printf("false");
 m=0;
 m?printf("true"):printf("false");
 return 0;
}



complied : gcc -S testcase.c -o testcase.s


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