aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-09-02 00:07:35 +0900
committernsfisis <nsfisis@gmail.com>2024-09-02 00:07:35 +0900
commitdff4a3529469c394f219404fd16936755bfdd868 (patch)
tree75e37c9810d9186285133843ae8e4404e85466c9
parent1bf9fa85bafd4b2588aaa1ee366b8eb42396ae0d (diff)
downloadmncore-challenge-dff4a3529469c394f219404fd16936755bfdd868.tar.gz
mncore-challenge-dff4a3529469c394f219404fd16936755bfdd868.tar.zst
mncore-challenge-dff4a3529469c394f219404fd16936755bfdd868.zip
06-FAM-8
-rw-r--r--problems/06-FAM-8/02.vsm51
1 files changed, 51 insertions, 0 deletions
diff --git a/problems/06-FAM-8/02.vsm b/problems/06-FAM-8/02.vsm
new file mode 100644
index 0000000..402ef2d
--- /dev/null
+++ b/problems/06-FAM-8/02.vsm
@@ -0,0 +1,51 @@
+imm f"8.0" $ls0v
+
+# (128 / 8 / 2).times do |i|
+# j = i * 16
+# puts "fvadd $lm#{j}v $ls0v $lr0v"
+# puts "fvadd $lm#{j + 8}v $ls0v $lr8v"
+# puts "fvmul $lr0v $ls0v $ln#{j}v"
+# puts "fvmul $lr8v $ls0v $ln#{j + 8}v"
+# puts
+# end
+
+# fvadd $lm0v $ls0v $lr0v
+fvadd $lm0v $aluf $lr0v
+fvadd $lm8v $ls0v $lr8v
+fvmul $lr0v $ls0v $ln0v
+fvmul $lr8v $ls0v $ln8v
+
+fvadd $lm16v $ls0v $lr0v
+fvadd $lm24v $ls0v $lr8v
+fvmul $lr0v $ls0v $ln16v
+fvmul $lr8v $ls0v $ln24v
+
+fvadd $lm32v $ls0v $lr0v
+fvadd $lm40v $ls0v $lr8v
+fvmul $lr0v $ls0v $ln32v
+fvmul $lr8v $ls0v $ln40v
+
+fvadd $lm48v $ls0v $lr0v
+fvadd $lm56v $ls0v $lr8v
+fvmul $lr0v $ls0v $ln48v
+fvmul $lr8v $ls0v $ln56v
+
+fvadd $lm64v $ls0v $lr0v
+fvadd $lm72v $ls0v $lr8v
+fvmul $lr0v $ls0v $ln64v
+fvmul $lr8v $ls0v $ln72v
+
+fvadd $lm80v $ls0v $lr0v
+fvadd $lm88v $ls0v $lr8v
+fvmul $lr0v $ls0v $ln80v
+fvmul $lr8v $ls0v $ln88v
+
+fvadd $lm96v $ls0v $lr0v
+fvadd $lm104v $ls0v $lr8v
+fvmul $lr0v $ls0v $ln96v
+fvmul $lr8v $ls0v $ln104v
+
+fvadd $lm112v $ls0v $lr0v
+fvadd $lm120v $ls0v $lr8v
+fvmul $lr0v $ls0v $ln112v
+fvmul $lr8v $ls0v $ln120v