Severity: minor
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: nasika.srikanth1 at gmail dot com
Actually its not a bug. But i identified that float variables are loading twice
into the FTU STACK during the condition checking ,that
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61979
--- Comment #2 from Srikanth ---
Created attachment 33225
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33225&action=edit
In this assemble code line number at 22-25 and after 27-30 both are same
instructions repeated for conditional checki
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61979
--- Comment #3 from Srikanth ---
Comment on attachment 33225
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33225
In this assemble code line number at 22-25 and after 27-30 both are same
instructions repeated for conditional checking.
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61979
--- Comment #4 from Srikanth ---
In the Above comment-3 assembly code with black color letter are the repeated
code i.e storing the float variable twice in FPU stack during conditional
checking for parity flag and zero flag. I just patch that one
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61979
--- Comment #6 from Srikanth ---
int main()
{
float m=12
m?printf("true"):printf("false");
m=0;
m?printf("true"):printf("false");
}
and above is the assemble code generated from the source file .. when i seeing
the assemble code i just recogni
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61979
--- Comment #8 from Srikanth ---
#include
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