microfpop.cc revision 11793:ef606668d247
17405SAli.Saidi@ARM.com/*
28868SMatt.Horsnell@arm.com * Copyright (c) 2007 The Hewlett-Packard Development Company
37405SAli.Saidi@ARM.com * All rights reserved.
47405SAli.Saidi@ARM.com *
57405SAli.Saidi@ARM.com * The license below extends only to copyright in the software and shall
67405SAli.Saidi@ARM.com * not be construed as granting a license to any other intellectual
77405SAli.Saidi@ARM.com * property including but not limited to intellectual property relating
87405SAli.Saidi@ARM.com * to a hardware implementation of the functionality of the software
97405SAli.Saidi@ARM.com * licensed hereunder.  You may use the software subject to the license
107405SAli.Saidi@ARM.com * terms below provided that you ensure that this notice is replicated
117405SAli.Saidi@ARM.com * unmodified and in its entirety in all distributions of the software,
127405SAli.Saidi@ARM.com * modified or unmodified, in source code or in binary form.
137405SAli.Saidi@ARM.com *
147405SAli.Saidi@ARM.com * Redistribution and use in source and binary forms, with or without
157405SAli.Saidi@ARM.com * modification, are permitted provided that the following conditions are
167405SAli.Saidi@ARM.com * met: redistributions of source code must retain the above copyright
177405SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer;
187405SAli.Saidi@ARM.com * redistributions in binary form must reproduce the above copyright
197405SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer in the
207405SAli.Saidi@ARM.com * documentation and/or other materials provided with the distribution;
217405SAli.Saidi@ARM.com * neither the name of the copyright holders nor the names of its
227405SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from
237405SAli.Saidi@ARM.com * this software without specific prior written permission.
247405SAli.Saidi@ARM.com *
257405SAli.Saidi@ARM.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
267405SAli.Saidi@ARM.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
277405SAli.Saidi@ARM.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
287405SAli.Saidi@ARM.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
297405SAli.Saidi@ARM.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
307405SAli.Saidi@ARM.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
317405SAli.Saidi@ARM.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
327405SAli.Saidi@ARM.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
337405SAli.Saidi@ARM.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
347405SAli.Saidi@ARM.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
357405SAli.Saidi@ARM.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
367405SAli.Saidi@ARM.com *
377405SAli.Saidi@ARM.com * Authors: Gabe Black
387405SAli.Saidi@ARM.com */
397405SAli.Saidi@ARM.com
407405SAli.Saidi@ARM.com#include "arch/x86/insts/microfpop.hh"
417405SAli.Saidi@ARM.com
428887Sgeoffrey.blake@arm.com#include <string>
438232Snate@binkert.org
448232Snate@binkert.org#include "arch/x86/regs/misc.hh"
457678Sgblack@eecs.umich.edu
468059SAli.Saidi@ARM.comnamespace X86ISA
478284SAli.Saidi@ARM.com{
487405SAli.Saidi@ARM.com    /*
497405SAli.Saidi@ARM.com    uint64_t FpOp::genFlags(uint64_t oldFlags, uint64_t flagMask,
507405SAli.Saidi@ARM.com            uint64_t _dest, uint64_t _src1, uint64_t _src2,
517405SAli.Saidi@ARM.com            bool subtract) const
527427Sgblack@eecs.umich.edu    {
537427Sgblack@eecs.umich.edu    }
547427Sgblack@eecs.umich.edu    */
557427Sgblack@eecs.umich.edu
568299Schander.sudanthi@arm.com    std::string FpOp::generateDisassembly(Addr pc,
577427Sgblack@eecs.umich.edu            const SymbolTable *symtab) const
587427Sgblack@eecs.umich.edu    {
597427Sgblack@eecs.umich.edu        std::stringstream response;
607427Sgblack@eecs.umich.edu
617427Sgblack@eecs.umich.edu        printMnemonic(response, instMnem, mnemonic);
627427Sgblack@eecs.umich.edu        printDestReg(response, 0, dataSize);
637427Sgblack@eecs.umich.edu        response << ", ";
647604SGene.Wu@arm.com        printSrcReg(response, 0, dataSize);
657427Sgblack@eecs.umich.edu        response << ", ";
667427Sgblack@eecs.umich.edu        printSrcReg(response, 1, dataSize);
677427Sgblack@eecs.umich.edu        return response.str();
687427Sgblack@eecs.umich.edu    }
697427Sgblack@eecs.umich.edu}
707427Sgblack@eecs.umich.edu