aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-09-10 19:45:19 +0900
committernsfisis <nsfisis@gmail.com>2024-09-10 19:45:19 +0900
commit875eb8c2d2c9ffa73d7ff1f481fa15b2f203308d (patch)
tree4dacc22efeb0d06c870cc8c3766eaf69a3a4f6dc
parentd1d6718f4fcdf3ac36403295d0cccde086fba0a3 (diff)
downloadmncore-challenge-875eb8c2d2c9ffa73d7ff1f481fa15b2f203308d.tar.gz
mncore-challenge-875eb8c2d2c9ffa73d7ff1f481fa15b2f203308d.tar.zst
mncore-challenge-875eb8c2d2c9ffa73d7ff1f481fa15b2f203308d.zip
11-Square-Sum
-rw-r--r--problems/11-Square-Sum/04.vsm16
1 files changed, 16 insertions, 0 deletions
diff --git a/problems/11-Square-Sum/04.vsm b/problems/11-Square-Sum/04.vsm
new file mode 100644
index 0000000..e5d7b5f
--- /dev/null
+++ b/problems/11-Square-Sum/04.vsm
@@ -0,0 +1,16 @@
+lpackbit $mabid $ln0 $t # t=2*mab
+nop
+
+dvmulu $lmt0v32 $lmt0v32 $nowrite
+dvfmad $lmt0v32 $lmt0v32 $mauf $nowrite
+dvmulu $lmt128v32 $lmt128v32 $nowrite; l1bmrdfadd $mauf $lb0
+dvfmad $lmt128v32 $lmt128v32 $mauf $nowrite; l1bmm $lbi $nowrite
+
+lpassa $lbf $lm256v; l1bmrdfadd $mauf $lb0
+l1bmm $lbi $lm264v
+
+lpackbit $mabid $ls256 $t
+nop
+
+l1bmrdfadd $lmt256v $lb0
+l1bmm $lbi $ln0v