diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | problems/14-Matrix-Square/02.vsm | 17 |
2 files changed, 18 insertions, 1 deletions
@@ -7,4 +7,4 @@ matrix_square_testcase_2: ./judge problems/14-Matrix-Square/testcase_2_float_8x8.vsm problems/14-Matrix-Square/answer_2_float_8x8.vsm matrix_square: - ./judge problems/14-Matrix-Square/testcase.vsm problems/14-Matrix-Square/01.vsm + ./judge problems/14-Matrix-Square/testcase.vsm problems/14-Matrix-Square/02.vsm 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 |
