x86: fix issue with casting in Cvtf2i
authorTony Gutierrez <anthony.gutierrez@amd.com>
Mon, 21 Nov 2016 20:35:56 +0000 (15:35 -0500)
committerTony Gutierrez <anthony.gutierrez@amd.com>
Mon, 21 Nov 2016 20:35:56 +0000 (15:35 -0500)
commit0799600686a918c06ffad72221ba3e3c961d3164
tree9ad019c70f2d5bfb418ed7279d1e1c8e027c3a6c
parent29d38e75762e195161786be60c695fba1b77c7de
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.
src/arch/x86/isa/microops/mediaop.isa