[Bug target/21809] Floating Optimization Bug
themis_hv at yahoo dot co dot uk
gcc-bugzilla@gcc.gnu.org
Sun May 29 19:31:00 GMT 2005
------- Additional Comments From themis_hv at yahoo dot co dot uk 2005-05-29 19:28 -------
Read the code carefully:
test-case.c:
#include <assert,h>
volatile float x = 3;
int main()
{
float a = 1 / x;
x = a;
assert(a == x);
}
Notice x = a before assertion, both of these variables are of the same data type.
This is *not* related to precission.
This is behaviour, you would expect from a compiler.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21809
More information about the Gcc-bugs
mailing list