Bug 45841 - x86 codegen produces wrong result for float operation
Summary: x86 codegen produces wrong result for float operation
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 4.8.0 (C9)
Hardware: PC Mac OS
: --- major
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2016-10-24 15:51 UTC by Marek Safar
Modified: 2016-10-24 20:45 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
test (3.00 KB, application/x-msdownload)
2016-10-24 15:51 UTC, Marek Safar
Details

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.

Note You need to log in before you can comment on or make changes to this bug.