operands.isa (7789:f455790bcd47) | operands.isa (8449:4be49ad47c74) |
---|---|
1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// The license below extends only to copyright in the software and shall 5// not be construed as granting a license to any other intellectual 6// property including but not limited to intellectual property relating 7// to a hardware implementation of the functionality of the software 8// licensed hereunder. You may use the software subject to the license --- 25 unchanged lines hidden (view full) --- 34// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 35// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 36// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 37// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38// 39// Authors: Gabe Black 40 41def operand_types {{ | 1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// The license below extends only to copyright in the software and shall 5// not be construed as granting a license to any other intellectual 6// property including but not limited to intellectual property relating 7// to a hardware implementation of the functionality of the software 8// licensed hereunder. You may use the software subject to the license --- 25 unchanged lines hidden (view full) --- 34// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 35// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 36// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 37// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38// 39// Authors: Gabe Black 40 41def operand_types {{ |
42 'sb' : ('signed int', 8), 43 'ub' : ('unsigned int', 8), 44 'sw' : ('signed int', 16), 45 'uw' : ('unsigned int', 16), 46 'sdw' : ('signed int', 32), 47 'udw' : ('unsigned int', 32), 48 'sqw' : ('signed int', 64), 49 'uqw' : ('unsigned int', 64), 50 'sf' : ('float', 32), 51 'df' : ('float', 64), | 42 'sb' : 'int8_t', 43 'ub' : 'uint8_t', 44 'sw' : 'int16_t', 45 'uw' : 'uint16_t', 46 'sdw' : 'int32_t', 47 'udw' : 'uint32_t', 48 'sqw' : 'int64_t', 49 'uqw' : 'uint64_t', 50 'sf' : 'float', 51 'df' : 'double', |
52}}; 53 54let {{ 55 def foldInt(idx, foldBit, id): 56 return ('IntReg', 'uqw', 'INTREG_FOLDED(%s, %s)' % (idx, foldBit), 57 'IsInteger', id) 58 def intReg(idx, id): 59 return ('IntReg', 'uqw', idx, 'IsInteger', id) --- 89 unchanged lines hidden --- | 52}}; 53 54let {{ 55 def foldInt(idx, foldBit, id): 56 return ('IntReg', 'uqw', 'INTREG_FOLDED(%s, %s)' % (idx, foldBit), 57 'IsInteger', id) 58 def intReg(idx, id): 59 return ('IntReg', 'uqw', idx, 'IsInteger', id) --- 89 unchanged lines hidden --- |