Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla

Bug 9

Summary: ARM: runnable/builtin.d floating point equality fails
Product: GDC Reporter: Johannes Pfau <johannespfau>
Component: gdcAssignee: Johannes Pfau <johannespfau>
Status: RESOLVED FIXED    
Severity: trivial CC: ibuclaw
Priority: ---    
Version: development   
Hardware: ARM   
OS: Linux   

Description Johannes Pfau 2012-09-25 09:33:44 CEST
I guess the exact value doesn't matter here, so we could just compare the result and allow a certain delta? What would be a useful delta here?

static assert(sin(6.8) == 0x1.f9f8d9aea10fdf1cp-2);
----
runnable/builtin.d:15: Error: static assert (4.94113351138608159e-1L == 4.94113351138608325e-1L) is false
----