From c0b6e387d7c40aec9e8d626976f4cfac27c54f90 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sun, 20 Apr 2025 12:14:22 -0700 Subject: Fix bugs One more encoding invert-branch test version, with extensive comments and symmetry pointed out. Fixes missing back branch at loop end. Switch the arguments to `dep.addDep(this)` to become `this.addDep(dep)` shortened to `addDep(dep)`. One more missing dep in Region fusing. --- chapter21/src/test/java/com/seaofnodes/simple/Chapter21Test.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chapter21/src/test') diff --git a/chapter21/src/test/java/com/seaofnodes/simple/Chapter21Test.java b/chapter21/src/test/java/com/seaofnodes/simple/Chapter21Test.java index 2a5082a0..ed869ed3 100644 --- a/chapter21/src/test/java/com/seaofnodes/simple/Chapter21Test.java +++ b/chapter21/src/test/java/com/seaofnodes/simple/Chapter21Test.java @@ -12,10 +12,10 @@ import static org.junit.Assert.*; public class Chapter21Test { - @Test @Ignore + @Test public void testJig() throws IOException { String src = Files.readString(Path.of("src/test/java/com/seaofnodes/simple/progs/jig.smp")); - testCPU(src,"x86_64_v2", "Win64",-1,null); + testCPU(src,"x86_64_v2", "Win64" ,-1,null); testCPU(src,"riscv" , "SystemV",-1,null); testCPU(src,"arm" , "SystemV",-1,null); } -- cgit v1.2.3