diff options
author | ryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-01-08 20:35:33 +0000 |
---|---|---|
committer | ryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-01-08 20:35:33 +0000 |
commit | 9051d55deb227f725b6a52f386ccc362f3565bb3 (patch) | |
tree | f8b7883aaab17f8a34f5e92a016f94b996d67791 /tests | |
parent | 01a12126c4e8311d92d6e45b44f0d1d8f3bf88cf (diff) | |
download | mpfr-9051d55deb227f725b6a52f386ccc362f3565bb3.tar.gz |
New file.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2142 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/x86.asm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/x86.asm b/tests/x86.asm new file mode 100644 index 000000000..0b83ec3e9 --- /dev/null +++ b/tests/x86.asm @@ -0,0 +1,46 @@ +# x86 specific test support +# +# Copyright 2003 Free Software Foundation, Inc. +# +# This file is part of the GNU MP Library. +# +# The GNU MP Library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation; either version 2.1 of the +# License, or (at your option) any later version. +# +# The GNU MP Library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with the GNU MP Library; see the file COPYING.LIB. If +# not, write to the Free Software Foundation, Inc., 59 Temple Place - +# Suite 330, Boston, MA 02111-1307, USA. + + + .text + + +# void x86_fldcw (unsigned short cw); + + .globl x86_fldcw + .globl _x86_fldcw +x86_fldcw: +_x86_fldcw: + fldcw 4(%esp) + ret + + +# unsigned short x86_fstcw (void); + + .globl x86_fstcw + .globl _x86_fstcw +x86_fstcw: +_x86_fstcw: + xorl %eax, %eax + pushl %eax + fstcw (%esp) + popl %eax + ret |