Commit 8a58a9fd authored by Jayke Meijer's avatar Jayke Meijer

Added last original cycles to report and fixed some bugs.

parent ceb2f51c
...@@ -305,7 +305,7 @@ acron & 361 & & 4435687 & & \\ ...@@ -305,7 +305,7 @@ acron & 361 & & 4435687 & & \\
dhrystone & 752 & & 2887710 & & \\ dhrystone & 752 & & 2887710 & & \\
whet & 935 & & 2864526 & & \\ whet & 935 & & 2864526 & & \\
slalom & 4177 & & 2879140 & & \\ slalom & 4177 & & 2879140 & & \\
clinpack & 3523 & & & & \\ clinpack & 3523 & & 1543746 & & \\
\hline \hline
\end{tabular} \end{tabular}
......
...@@ -30,7 +30,7 @@ def create_use_def(block): ...@@ -30,7 +30,7 @@ def create_use_def(block):
if block.dummy: if block.dummy:
block.use_set = set(['$4', '$5', '$6', '$7', \ block.use_set = set(['$4', '$5', '$6', '$7', \
'$f0', '$f3', '$f4', '$f12', '$2']) '$f0', '$f1', '$f2', '$f3', '$f4', '$f12', '$2'])
block.def_set = set(['$2', '$3']) block.def_set = set(['$2', '$3'])
return return
......
...@@ -118,7 +118,7 @@ class Statement: ...@@ -118,7 +118,7 @@ class Statement:
def is_double_arithmetic(self): def is_double_arithmetic(self):
"""Check if the statement is a arithmetic .d operator.""" """Check if the statement is a arithmetic .d operator."""
return self.is_command() and \ return self.is_command() and \
re.match('^(add|sub|div|mul)\.d$', self.name) re.match('^(add|sub|div|mul)\.[sd]$', self.name)
def is_double_unary(self): def is_double_unary(self):
"""Check if the statement is a unary .d operator.""" """Check if the statement is a unary .d operator."""
...@@ -172,7 +172,7 @@ class Statement: ...@@ -172,7 +172,7 @@ class Statement:
def get_use(self): def get_use(self):
"""Get the variables that this statement uses, if any.""" """Get the variables that this statement uses, if any."""
instr = ['addu', 'subu', 'mult', 'div', 'move', 'mov.d', \ instr = ['addu', 'subu', 'mult', 'div', 'move', 'mov.d', \
'dmfc1'] 'dmfc1', 'div.s']
use = set() use = set()
# Jump to register addres uses register # Jump to register addres uses register
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment