Bug 45841

Summary: x86 codegen produces wrong result for float operation
Product: [Mono] Runtime Reporter: Marek Safar <masafa>
Component: JITAssignee: Zoltan Varga <vargaz>
Status: RESOLVED FIXED    
Severity: major CC: mono-bugs+mono, mono-bugs+runtime
Priority: ---    
Version: 4.8.0 (C9)   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: test

Description Marek Safar 2016-10-24 15:51:23 UTC
Created attachment 18194 [details]
test

This is codegen specific issue happening on x86 (32 bits) only with very specific IL code (single change makes the issue go away).

Run enclosed .exe on 32 bit and you get

0.00000000000000000

where expected is

5.0000000000000000
Comment 1 Zoltan Varga 2016-10-24 20:45:33 UTC
Fixed in master. Thanks for the testcase.