x86: fix issue with casting in Cvtf2i
Review Request #3721 - Created Nov. 17, 2016 and submitted
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 11892:35849c921444 --------------------------- x86: fix issue with casting in Cvtf2i UBSAN flags this operation because it detects that arg is being cast directly to an unsigned type, argBits. this patch fixes this by first casting the value to a signed int type, then reintrepreting the raw bits of the signed int into argBits.
Ship It!
Posted (Nov. 21, 2016, 11:31 a.m.)
Thoughts? I would like to ship this today.
This fixes some errors I was seeing when running with sanitizers.
