From 4343e6891b7f2db5dbd9cc43078c45ce4aee025b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 7 Sep 2024 22:55:46 +0900 Subject: 14-Matrix-Square --- problems/14-Matrix-Square/02.vsm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 problems/14-Matrix-Square/02.vsm (limited to 'problems/14-Matrix-Square') diff --git a/problems/14-Matrix-Square/02.vsm b/problems/14-Matrix-Square/02.vsm new file mode 100644 index 0000000..e4ca741 --- /dev/null +++ b/problems/14-Matrix-Square/02.vsm @@ -0,0 +1,17 @@ +hmwrite $llm0vr $ly0; hbfn/9 $llm0vr $lr0v +hmwrite $llm16vr $ly4; hbfn/9 $llm16vr $lr8v +hmwrite $llm32vr $ly8; hbfn/9 $llm32vr $lr16v +hmwrite $llm48vr $ly12; hbfn/9 $llm48vr $lr24v + +hmwrite $llr0v $llx0; hmread $lly0 $nowrite +hmwrite $llr16v $llx8; hmread $lly8 $nowrite; hbfn/9 $mreadf $lls0v +hbfn/9 $mreadf $llr0v + +hmmul $lx $ls0v $lln0v +hmmul $lx $ls8v $lln16v +hmmul $lx $lr0v $lln32v +hmmul $lx $lr8v $lln48v + +# BF, write to $x +# write to $y, read from $y^T, BF +# mmul -- cgit v1.2.3-70-g09d2