commit 717c8d80de226bc1c453b4d88b50e2c84961e1bd
parent 21984842672b546b40015dbe443e24de4e2e44c9
Author: Brian Swetland <swetland@frotz.net>
Date: Mon, 6 Dec 2021 02:17:30 -0800
tests: fibonacci: reduce runtime
The extremely dumb codegen from the new reference code generator
was resulting in this test taking over a million instructions to
execute.
Diffstat:
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/test/1025-fibonacci.log b/test/1025-fibonacci.log
@@ -22,10 +22,4 @@ D 00001a6d
D 00002ac2
D 0000452f
D 00006ff1
-D 0000b520
-D 00012511
-D 0001da31
-D 0002ff42
-D 0004d973
-D 0007d8b5
X 00000007
diff --git a/test/1025-fibonacci.src b/test/1025-fibonacci.src
@@ -9,7 +9,7 @@ func fib(n i32) i32 {
func start() i32 {
var n i32 = 0;
- while n < 30 {
+ while n < 24 {
_hexout_(fib(n));
n++;
}