load_or_store_floating_point.py revision 9893
17090SN/A# Copyright (c) 2007 The Hewlett-Packard Development Company
27090SN/A# All rights reserved.
37090SN/A#
47090SN/A# The license below extends only to copyright in the software and shall
57090SN/A# not be construed as granting a license to any other intellectual
67090SN/A# property including but not limited to intellectual property relating
77090SN/A# to a hardware implementation of the functionality of the software
87090SN/A# licensed hereunder.  You may use the software subject to the license
97090SN/A# terms below provided that you ensure that this notice is replicated
107090SN/A# unmodified and in its entirety in all distributions of the software,
117090SN/A# modified or unmodified, in source code or in binary form.
127090SN/A#
134486SN/A# Redistribution and use in source and binary forms, with or without
144486SN/A# modification, are permitted provided that the following conditions are
154486SN/A# met: redistributions of source code must retain the above copyright
164486SN/A# notice, this list of conditions and the following disclaimer;
174486SN/A# redistributions in binary form must reproduce the above copyright
184486SN/A# notice, this list of conditions and the following disclaimer in the
194486SN/A# documentation and/or other materials provided with the distribution;
204486SN/A# neither the name of the copyright holders nor the names of its
214486SN/A# contributors may be used to endorse or promote products derived from
224486SN/A# this software without specific prior written permission.
234486SN/A#
244486SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
254486SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
264486SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
274486SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
284486SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
294486SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
304486SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
314486SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
324486SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
334486SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
344486SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
354486SN/A#
364486SN/A# Authors: Gabe Black
374486SN/A
384486SN/Amicrocode = '''
397584SAli.Saidi@arm.comdef macroop FLD_M {
407584SAli.Saidi@arm.com    ldfp ufp1, seg, sib, disp
417754SWilliam.Wang@arm.com    movfp st(-1), ufp1, spm=-1
424486SN/A};
433630SN/A
443630SN/Adef macroop FLD_P {
457587SAli.Saidi@arm.com    rdip t7
468525SAli.Saidi@ARM.com    ldfp ufp1, seg, riprel, disp
478525SAli.Saidi@ARM.com    movfp st(-1), ufp1, spm=-1
488212SAli.Saidi@ARM.com};
495478SN/A
505478SN/Adef macroop FLD_R {
517584SAli.Saidi@arm.com    movfp st(-1), sti, spm=-1
523630SN/A};
537584SAli.Saidi@arm.com
547584SAli.Saidi@arm.comdef macroop FST_R {
557584SAli.Saidi@arm.com    movfp sti, st(0)
567584SAli.Saidi@arm.com};
573898SN/A
587950SAli.Saidi@ARM.comdef macroop FST_M {
597950SAli.Saidi@ARM.com    stfp st(0), seg, sib, disp
607950SAli.Saidi@ARM.com};
617950SAli.Saidi@ARM.com
627950SAli.Saidi@ARM.comdef macroop FST_P {
637950SAli.Saidi@ARM.com    rdip t7
647950SAli.Saidi@ARM.com    stfp st(0), seg, riprel, disp
657950SAli.Saidi@ARM.com};
667587SAli.Saidi@arm.com
677587SAli.Saidi@arm.comdef macroop FSTP_R {
687587SAli.Saidi@arm.com    movfp sti, st(0), spm=1
697753SWilliam.Wang@arm.com};
707753SWilliam.Wang@arm.com
717753SWilliam.Wang@arm.comdef macroop FSTP_M {
727753SWilliam.Wang@arm.com    movfp ufp1, st(0)
737587SAli.Saidi@arm.com    stfp ufp1, seg, sib, disp
747587SAli.Saidi@arm.com    pop87
758282SAli.Saidi@ARM.com};
768282SAli.Saidi@ARM.com
778282SAli.Saidi@ARM.comdef macroop FSTP_P {
787584SAli.Saidi@arm.com    movfp ufp1, st(0)
797584SAli.Saidi@arm.com    rdip t7
808524SAli.Saidi@ARM.com    stfp ufp1, seg, riprel, disp
818524SAli.Saidi@ARM.com    pop87
828299Schander.sudanthi@arm.com};
837584SAli.Saidi@arm.com'''
847584SAli.Saidi@arm.com