https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61979
Bug ID: 61979 Summary: Why float variable loading twice into the FTU Stack during condition checking ? Product: gcc Version: unknown Status: UNCONFIRMED 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's actually my doubt and i check without loading it again i remove repeated code and getting the same output . But why gcc complier loads the float variable again into the FTU Stack ? For checking the condition it first checks the parity flags(whether NAN ,INF )then it again loads the float variable into FTU stack and check for the zero flag( whether non zero) set or not. But we can directly check the zero flag after checking parity flag with out loading the variable into the FTU stack.