summaryrefslogtreecommitdiff
path: root/6/isel.c
diff options
context:
space:
mode:
Diffstat (limited to '6/isel.c')
-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;