help understanding behaviour of unsuffixed float constants

Regan, Brian (EPC COE) brian.regan@honeywell.com
Wed May 28 18:36:00 GMT 2014


Agree result is the same - just in a non-compliant-ey type of way. (opcodes are just my means of looking under the compiler hood to understand the compiler behaviour.) 

-----Original Message-----
From: Jonathan Wakely [mailto:jwakely.gcc@gmail.com] 
Sent: Wednesday, May 28, 2014 2:30 PM
To: Regan, Brian (EPC COE)
Cc: Jakub Jelinek; gcc-help@gcc.gnu.org
Subject: Re: help understanding behaviour of unsuffixed float constants

On 28 May 2014 19:10, Regan, Brian (EPC COE) wrote:
> (Note, at address 18000e4, objdump did not decode the SPE instruction 
> correctly. The opcode is the single precision less than in the ppc SPE 
> extension.)

The C standard doesn't say anything about which opcodes an expression must be compiled to.

Doesn't the single precision one give the same result for 100.f < 200.f as you would get for 100. < 200. ? If so, there is no "deviation" from the standard.


More information about the Gcc-help mailing list