aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems
diff options
context:
space:
mode:
Diffstat (limited to 'problems')
-rw-r--r--problems/08-Lesseq/03.vsm16
-rw-r--r--problems/08-Lesseq/04.vsm15
2 files changed, 31 insertions, 0 deletions
diff --git a/problems/08-Lesseq/03.vsm b/problems/08-Lesseq/03.vsm
new file mode 100644
index 0000000..6247a77
--- /dev/null
+++ b/problems/08-Lesseq/03.vsm
@@ -0,0 +1,16 @@
+imm f"-1.0" $ls0v
+imm f"inf" $lr0v
+
+# (40 / 8).times do |i|
+# j = i * 8
+# puts "fvadd $lm#{j}v $ls0v $nowrite"
+# puts "frelu $mauf $lr0v $ln#{j}v"
+# puts
+# end
+
+fvadd $lm0v $ls0v $nowrite
+frelu $mauf $lr0v $ln0v; fvadd $lm8v $ls0v $nowrite
+frelu $mauf $lr0v $ln8v; fvadd $lm16v $ls0v $nowrite
+frelu $mauf $lr0v $ln16v; fvadd $lm24v $ls0v $nowrite
+frelu $mauf $lr0v $ln24v; fvadd $lm32v $ls0v $nowrite
+frelu $mauf $lr0v $ln32v
diff --git a/problems/08-Lesseq/04.vsm b/problems/08-Lesseq/04.vsm
new file mode 100644
index 0000000..19375ff
--- /dev/null
+++ b/problems/08-Lesseq/04.vsm
@@ -0,0 +1,15 @@
+# (40 / 8).times do |i|
+# j = i * 8
+# puts "fvadd $lm#{j}v $ls0v $omr1"
+# puts "inot $msb1 $ln#{j}v/$imr1"
+# puts
+# end
+
+imm f"-1.0" $ls0v
+
+fvadd $lm0v $aluf $omr1
+inot $msb1 $ln0v/$imr1; fvadd $lm8v $ls0v $omr1
+inot $msb1 $ln8v/$imr1; fvadd $lm16v $ls0v $omr1
+inot $msb1 $ln16v/$imr1; fvadd $lm24v $ls0v $omr1
+inot $msb1 $ln24v/$imr1; fvadd $lm32v $ls0v $omr1
+inot $msb1 $ln32v/$imr1