aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--problems/04-Mul-7/02.vsm54
1 files changed, 54 insertions, 0 deletions
diff --git a/problems/04-Mul-7/02.vsm b/problems/04-Mul-7/02.vsm
index ebaa382..5e1b22f 100644
--- a/problems/04-Mul-7/02.vsm
+++ b/problems/04-Mul-7/02.vsm
@@ -104,3 +104,57 @@ nop/2
dvfmau $lm0v $ls6 -$lr12 $nowrite
dvfmad $lm0v $ls6 $mauf $nowrite
dftoi $mauf $ln0v
+
+
+
+imm i"3" $s1v2
+llsl; fvpassa
+lsub; fvpassa
+llsl; dvfmau
+lsub; dvfmad
+dftoi; dvfmau
+dvfmad
+dftoi
+
+
+###########################################
+
+imm f"8388608" $s0v
+imm f"7.0" $r0v
+imm f"58720256" $s4v
+
+ior $lm0v $ls0 $nowrite
+fvfma $aluf $lr0 -$ls4 $nowrite
+fftoi $mauf $ln0v
+
+ior $lm8v $ls0 $nowrite
+fvfma $aluf $lr0 -$ls4 $nowrite
+fftoi $mauf $ln8v
+
+ior $lm16v $ls0 $nowrite
+fvfma $aluf $lr0 -$ls4 $nowrite
+fftoi $mauf $ln16v
+
+ior $lm24v $ls0 $nowrite
+fvfma $aluf $lr0 -$ls4 $nowrite
+fftoi $mauf $ln24v
+
+###########################################
+
+imm f"8388608" $t
+imm f"7.0" $r0v
+imm f"58720256" $s4v
+
+ior $lm0v $t $nowrite
+ior $lm8v $t $nowrite; fvfma $aluf $lr0 -$ls4 $nowrite
+fftoi $mauf $ln0v; fvfma $aluf $lr0 -$ls4 $nowrite
+fftoi $mauf $ln8v
+
+ior $lm16v $t $nowrite
+ior $lm24v $t $nowrite; fvfma $aluf $lr0 -$ls4 $nowrite
+fftoi $mauf $ln16v; fvfma $aluf $lr0 -$ls4 $nowrite
+fftoi $mauf $ln24v
+
+###########################################
+
+# TODO: 7 lines の内訳考える