summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-04-28 21:36:09 -0700
committerOri Bernstein <ori@eigenstate.org>2019-04-28 21:36:09 -0700
commit4be03d030c00960d2b27f319057d1a07603c0260 (patch)
treebb416efe4aea300655ae09769ffb1ee7232c13e2 /6
parentcbf8e144771b88703180db26d74f1c65e45d84fe (diff)
downloadmc-4be03d030c00960d2b27f319057d1a07603c0260.tar.gz
Fix float conversions in casts.
We were dropping the intness, and didn't registerize the args to comisd.
Diffstat (limited to '6')
-rw-r--r--6/isel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/6/isel.c b/6/isel.c
index 99988a3..0361578 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -913,11 +913,13 @@ selexpr(Isel *s, Node *n)
break;
case Oint2flt:
a = selexpr(s, args[0]);
+ a = inr(s ,a);
r = locreg(mode(n));
g(s, Icvttsi2sd, a, r, NULL);
break;
case Oflt2int:
a = selexpr(s, args[0]);
+ a = inr(s ,a);
r = locreg(mode(n));
g(s, Icvttsd2si, a, r, NULL);
break;