From 0f08d4ee1f80e590f1066a04a79d27ac46ea3844 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 5 Sep 2024 07:46:09 +0900 Subject: 08-Lesseq --- problems/08-Lesseq/03.vsm | 16 ++++++++++++++++ problems/08-Lesseq/04.vsm | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 problems/08-Lesseq/03.vsm create mode 100644 problems/08-Lesseq/04.vsm (limited to 'problems/08-Lesseq') 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 -- cgit v1.2.3-70-g09d2