Explorar o código

Merged conflicts.

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
968c47b824
Modificáronse 2 ficheiros con 8 adicións e 8 borrados
  1. 6 6
      report/report.tex
  2. 2 2
      src/statement.py

+ 6 - 6
report/report.tex

@@ -300,12 +300,12 @@ The following results have been obtained:\\
 Benchmark & Original     & Optimized    & Original & Optimized & Performance \\
         & Instructions & instructions & cycles   & cycles    &  boost(cycles)\\
 \hline
-pi        &           94 &              &          &           &             \\
-acron     &          361 &              &          &           &             \\
-dhrystone &          752 &              &          &           &             \\
-whet      &          935 &              &          &           &             \\
-slalom    &         4177 &              &          &           &             \\
-clinpack  &         3523 &              &          &           &             \\
+pi        &           94 &              &  1714468 &           &             \\
+acron     &          361 &              &  4435687 &           &             \\
+dhrystone &          752 &              &  2887710 &           &             \\
+whet      &          935 &              &  2864526 &           &             \\
+slalom    &         4177 &              &  2879140 &           &             \\
+clinpack  &         3523 &              &  1543746 &           &             \\
 \hline
 \end{tabular}
 

+ 2 - 2
src/statement.py

@@ -118,7 +118,7 @@ class Statement:
     def is_double_arithmetic(self):
         """Check if the statement is a arithmetic .d operator."""
         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):
         """Check if the statement is a unary .d operator."""
@@ -172,7 +172,7 @@ class Statement:
     def get_use(self):
         """Get the variables that this statement uses, if any."""
         instr = ['addu', 'subu', 'mult', 'div', 'move', 'mov.d', \
-            'dmfc1']
+            'dmfc1', 'div.s']
         use = set()
 
         # Jump to register addres uses register