refine fp conversion instructions
This commit is contained in:
parent
d2046e2cd0
commit
55476d0738
6 changed files with 24 additions and 20 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue