aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-09-05 08:37:23 +0900
committernsfisis <nsfisis@gmail.com>2024-09-05 08:37:23 +0900
commita535c53104e8355d4a3e51419c29b1e2efa582e6 (patch)
treebe69aa988954d1d161fad5a848d39582010ccb08 /problems
parent132dcf7f637a570639681b5f57fe76ab66921a61 (diff)
downloadmncore-challenge-a535c53104e8355d4a3e51419c29b1e2efa582e6.tar.gz
mncore-challenge-a535c53104e8355d4a3e51419c29b1e2efa582e6.tar.zst
mncore-challenge-a535c53104e8355d4a3e51419c29b1e2efa582e6.zip
11-Square-Sum
Diffstat (limited to 'problems')
-rw-r--r--problems/11-Square-Sum/02.vsm22
1 files changed, 22 insertions, 0 deletions
diff --git a/problems/11-Square-Sum/02.vsm b/problems/11-Square-Sum/02.vsm
new file mode 100644
index 0000000..28af088
--- /dev/null
+++ b/problems/11-Square-Sum/02.vsm
@@ -0,0 +1,22 @@
+imm i"4" $nowrite
+llsl $mabid $aluf $t
+nop
+
+lpassa $llmt0v $llr0v # $lm[16mab+0,...,16mab+14]
+nop
+
+dvmulu $lmt0v $lr0v $ls0v
+dvfmad $lmt0v $lr0v $mauf $ls0v
+dvmulu $lmt8v $lr8v $ls8v
+dvfmad $lmt8v $lr8v $mauf $ls8v
+
+l1bmrdfadd $ls0v $lb0
+l1bmm $lbi $lm256v
+l1bmrdfadd $ls8v $lb0
+l1bmm $lbi $lm264v
+
+lpackbit $mabid $ls256 $t
+nop
+
+l1bmrdfadd $lmt256v $lb0
+l1bmm $lbi $ln0v