summaryrefslogtreecommitdiff
path: root/chapter21
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-09-17 15:04:32 -0700
committerCliff Click <cliffc@acm.org>2026-09-17 15:04:32 -0700
commit8331098d1904538a3a97d22e4d847cf2cc94e57d (patch)
tree879a36ef298d0cdbcee1f13d9a776df713af333c /chapter21
parentc433f2cc5748f05e3f30f968db958f33414469dc (diff)
downloadSimple-8331098d1904538a3a97d22e4d847cf2cc94e57d.tar.gz
Simple-8331098d1904538a3a97d22e4d847cf2cc94e57d.zip
x86 mul reg reg encoding fix
Diffstat (limited to 'chapter21')
-rw-r--r--chapter21/Makefile2
-rw-r--r--chapter21/src/test/java/com/seaofnodes/simple/codegen/X86EncodingTest.java (renamed from chapter21/src/test/java/com/seaofnodes/simple/X86EncodingTest.java)3
2 files changed, 2 insertions, 3 deletions
diff --git a/chapter21/Makefile b/chapter21/Makefile
index 055c632a..429e40df 100644
--- a/chapter21/Makefile
+++ b/chapter21/Makefile
@@ -37,7 +37,7 @@ main_javas := $(wildcard $(SRC)/$(SIMPLE)/*java $(SRC)/$(SIMPLE)/*/*java $(SRC
test_javas := $(wildcard $(TST)/$(SIMPLE)/*java $(TST)/$(SIMPLE)/*/*java)
main_classes := $(patsubst $(SRC)/%java,$(CLZDIR)/main/%class,$(main_javas))
test_classes := $(patsubst $(TST)/%java,$(CLZDIR)/test/%class,$(test_javas))
-test_cp := $(patsubst $(TST)/$(SIMPLE)/%.java,com.seaofnodes.simple.%,$(wildcard $(TST)/$(SIMPLE)/*Test.java))
+test_cp := $(patsubst $(TST)/$(SIMPLE)/%.java,com.seaofnodes.simple.%,$(wildcard $(TST)/$(SIMPLE)/*Test.java)) com.seaofnodes.simple.codegen.X86EncodingTest
classes = $(main_classes) $(test_classes)
# All the libraries
libs = $(wildcard lib/*jar)
diff --git a/chapter21/src/test/java/com/seaofnodes/simple/X86EncodingTest.java b/chapter21/src/test/java/com/seaofnodes/simple/codegen/X86EncodingTest.java
index 54fa96a8..03a57675 100644
--- a/chapter21/src/test/java/com/seaofnodes/simple/X86EncodingTest.java
+++ b/chapter21/src/test/java/com/seaofnodes/simple/codegen/X86EncodingTest.java
@@ -1,6 +1,5 @@
-package com.seaofnodes.simple;
+package com.seaofnodes.simple.codegen;
-import com.seaofnodes.simple.codegen.CodeGen;
import com.seaofnodes.simple.node.cpus.x86_64_v2.CmpMemX86;
import org.junit.Test;
import static org.junit.Assert.*;