specialize.isa (6518:1ad4a7774b3c) specialize.isa (6519:36369ba5fad6)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// Redistribution and use of this software in source and binary forms,
7// with or without modification, are permitted provided that the
8// following conditions are met:

--- 125 unchanged lines hidden (view full) ---

134 # set of argument types described by "opTypes".
135 def specializeInst(Name, opTypes, env):
136 # print "Specializing %s with opTypes %s" % (Name, opTypes)
137 while len(opTypes):
138 # Parse the operand type string we're working with
139 opType = OpType(opTypes[0])
140 opTypes.pop(0)
141
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// Redistribution and use of this software in source and binary forms,
7// with or without modification, are permitted provided that the
8// following conditions are met:

--- 125 unchanged lines hidden (view full) ---

134 # set of argument types described by "opTypes".
135 def specializeInst(Name, opTypes, env):
136 # print "Specializing %s with opTypes %s" % (Name, opTypes)
137 while len(opTypes):
138 # Parse the operand type string we're working with
139 opType = OpType(opTypes[0])
140 opTypes.pop(0)
141
142 if opType.tag not in ("I", "J"):
142 if opType.tag not in ("I", "J", "P", "PR", "Q", "V", "VR", "W"):
143 if opType.size:
144 env.setSize(opType.size)
145
146 if opType.reg:
147 #Figure out what to do with fixed register operands
148 #This is the index to use, so we should stick it some place.
149 if opType.reg in ("A", "B", "C", "D"):
150 regString = "INTREG_R%sX" % opType.reg

--- 109 unchanged lines hidden ---
143 if opType.size:
144 env.setSize(opType.size)
145
146 if opType.reg:
147 #Figure out what to do with fixed register operands
148 #This is the index to use, so we should stick it some place.
149 if opType.reg in ("A", "B", "C", "D"):
150 regString = "INTREG_R%sX" % opType.reg

--- 109 unchanged lines hidden ---