some assemblers don't like fistpq; use the alt. mnemonic fistpll
authorRich Felker <dalias@aerifal.cx>
Mon, 7 May 2012 22:05:50 +0000 (18:05 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 7 May 2012 22:05:50 +0000 (18:05 -0400)
src/math/i386/llrint.s
src/math/i386/llrintf.s
src/math/i386/llrintl.s

index eaa7f1fbb6b2e38ebff6462397bdac8e110e0ab5..8e89cd913991401f3068b0f6faa73685cb963c35 100644 (file)
@@ -2,7 +2,7 @@
 .type llrint,@function
 llrint:
        fldl 4(%esp)
-       fistpq 4(%esp)
+       fistpll 4(%esp)
        mov 4(%esp),%eax
        mov 8(%esp),%edx
        ret
index 1905cdcd704820fcad6b5a6ae2312c1a154e5ff9..aa850c6cd2dac7caff44b650003a92165346496a 100644 (file)
@@ -3,7 +3,7 @@
 llrintf:
        sub $8,%esp
        flds 12(%esp)
-       fistpq (%esp)
+       fistpll (%esp)
        pop %eax
        pop %edx
        ret
index fd9a1cbd4ef5ebd1281867878661ef7959b10862..1cfb56f15b13351875aec4b686cabad1bb5e8410 100644 (file)
@@ -2,7 +2,7 @@
 .type llrintl,@function
 llrintl:
        fldt 4(%esp)
-       fistpq 4(%esp)
+       fistpll 4(%esp)
        mov 4(%esp),%eax
        mov 8(%esp),%edx
        ret