summaryrefslogtreecommitdiff
path: root/6/isel.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-02-09 00:02:19 -0800
committerOri Bernstein <ori@eigenstate.org>2015-02-09 00:02:19 -0800
commit53712aa0fc95a84fa36b4960aeef98ceee6859bc (patch)
treef26319f977fe91832d9eded04fb526d1cb8bf68f /6/isel.c
parent7462d862115db5b21243a451c4a3e9fa6b4265f9 (diff)
downloadmc-53712aa0fc95a84fa36b4960aeef98ceee6859bc.tar.gz
Fix int->float conversion.
Diffstat (limited to '6/isel.c')
-rw-r--r--6/isel.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/6/isel.c b/6/isel.c
index 01979d8..0a0f1c8 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -759,17 +759,13 @@ Loc *selexpr(Isel *s, Node *n)
break;
case Oint2flt:
a = selexpr(s, args[0]);
- b = locreg(ModeQ);
r = locreg(mode(n));
- g(s, Imovs, a, b, NULL);
- g(s, Icvttsi2sd, b, r, NULL);
+ g(s, Icvttsi2sd, a, r, NULL);
break;
case Oflt2int:
a = selexpr(s, args[0]);
- b = locreg(ModeQ);
r = locreg(mode(n));
- g(s, Icvttsd2si, a, b, NULL);
- g(s, Imov, b, r, NULL);
+ g(s, Icvttsd2si, a, r, NULL);
break;
case Oflt2flt: