refine fp conversion instructions

This commit is contained in:
Quentin Carbonneaux 2016-04-22 15:11:18 -04:00
parent d2046e2cd0
commit 55476d0738
6 changed files with 24 additions and 20 deletions

View file

@ -12,8 +12,8 @@ function s $fneg(s %f) {
export
function d $ftrunc(d %f) {
@ftrunc
%l0 =l ftosi %f
%rt =d sitof %l0
%l0 =w dtosi %f
%rt =d swtof %l0
ret %rt
}