aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-09-11 06:04:44 +0900
committernsfisis <nsfisis@gmail.com>2024-09-11 06:04:44 +0900
commite2be51d35f40ed779830d4c6fb48f28ceb83bd99 (patch)
treed83ff4e0d7e7efa841cdf5bace8c3629ca9b01f9 /problems
parent84bac718cf36291b7bc8004b8e3c0f60fc9ec39d (diff)
downloadmncore-challenge-e2be51d35f40ed779830d4c6fb48f28ceb83bd99.tar.gz
mncore-challenge-e2be51d35f40ed779830d4c6fb48f28ceb83bd99.tar.zst
mncore-challenge-e2be51d35f40ed779830d4c6fb48f28ceb83bd99.zip
11-Square-Sum (incomplete)
Diffstat (limited to 'problems')
-rw-r--r--problems/11-Square-Sum/05.vsm16
1 files changed, 16 insertions, 0 deletions
diff --git a/problems/11-Square-Sum/05.vsm b/problems/11-Square-Sum/05.vsm
new file mode 100644
index 0000000..4da9e64
--- /dev/null
+++ b/problems/11-Square-Sum/05.vsm
@@ -0,0 +1,16 @@
+lpackbit $mabid $ln0 $t # t = 2 x mab
+nop
+
+dvmulu $lmt0v32 $lmt0v32 $nowrite
+dvfmad $lmt0v32 $lmt0v32 $mauf $nowrite
+dvmulu $lmt128v32 $lmt128v32 $nowrite; l1bmrdfadd $mauf $lbi
+dvfmad $lmt128v32 $lmt128v32 $mauf $nowrite
+
+l1bmm $lbi $lm256v; l1bmrdfadd $mauf $lbi
+l1bmm $lbi $lm264v
+
+nop
+nop
+
+l1bmrdfadd $lmt256v $lbi
+l1bmm $lbi $ln0v