This commit is contained in:
Jan Laukemann
2017-09-22 13:19:36 +02:00
parent c54e784567
commit b2a0e3c5af
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#!/apps/python/3.5-anaconda/bin/python
class Parameter(object):
type_list = ["REG", "MEM", "IMD", "LBL", "NONE"]
def __init__(self, ptype, name=""):
def __init__(self, ptype, name="NONE"):
self.ptype = ptype.upper()
if(self.ptype not in self.type_list):
raise NameError("Type not supported: "+ptype)

View File

@@ -145,7 +145,7 @@ def check_instr(instr):
#Only create benchmark if no label (LBL) is part of the operands
do_bench = True
for par in opList:
if(par.print() == 'LBL'):
if(par.print() == 'LBL' or par.print() == ''):
do_bench = False
if(do_bench):
#Create testcase with reversed param list, due to the fact its intel syntax!