[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: [Bug other/61979] New: Why float variable loading twice into the FTU Stack during condition checking
From: "nasika.srikanth1 at gmail dot com" <gcc-bugzilla () gcc ! gnu ! org>
Date: 2014-07-31 16:52:09
Message-ID: bug-61979-4 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic