summaryrefslogtreecommitdiff
path: root/chapter32/src/test/java/com/seaofnodes
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-11-16 08:56:51 -0800
committerCliff Click <cliffc@acm.org>2026-11-16 08:56:51 -0800
commit6643e8fda31a81ec40f33caa5c866b821fd04910 (patch)
treeffe70b3f78431f3481a508f896a428b08b4e09e0 /chapter32/src/test/java/com/seaofnodes
parentec270802f05b93eccffa2e0fbfb9bd5dd63c9cb2 (diff)
downloadSimple-6643e8fda31a81ec40f33caa5c866b821fd04910.tar.gz
Simple-6643e8fda31a81ec40f33caa5c866b821fd04910.zip
CI fix
Diffstat (limited to 'chapter32/src/test/java/com/seaofnodes')
-rw-r--r--chapter32/src/test/java/com/seaofnodes/simple/Chapter21Test.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/chapter32/src/test/java/com/seaofnodes/simple/Chapter21Test.java b/chapter32/src/test/java/com/seaofnodes/simple/Chapter21Test.java
index 14a091ac..347f2ce4 100644
--- a/chapter32/src/test/java/com/seaofnodes/simple/Chapter21Test.java
+++ b/chapter32/src/test/java/com/seaofnodes/simple/Chapter21Test.java
@@ -472,7 +472,8 @@ val test_sqrt = { flt x ->
}
};
""";
- TestC.runC(src, "newtonFloat", result, TestC.CALL_CONVENTION.equals("win64") ? 42 : 34);
+ // With the zero-input guard, both SystemV and win64 score 42.
+ TestC.runC(src, "newtonFloat", result, 42);
EvalRisc5 R5 = TestRisc5.build( src, "test_sqrt", 0, 10, false);
R5.fregs[riscv.FA0 - riscv.F_OFFSET] = 3.0;