diff options
| author | Cliff Click <cliffc@acm.org> | 2026-08-10 11:11:18 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-11-16 16:23:52 -0800 |
| commit | 0b263f550d5e54d050f58f6b315b092944c9eff9 (patch) | |
| tree | aff564cf11711c41a6f94f17ffbc480e1b228da1 /src/test/java/com/seaofnodes/simple/Chapter13Test.java | |
| parent | 790268f4a1f6122376c34059f1633c1017436363 (diff) | |
| download | Simple-linear-chapter32.tar.gz Simple-linear-chapter32.zip | |
Chapter 32: Compiler Internal Speedupslinear-chapter32linear
Co-authored-by: Hsiang-Ying Fu <66062782+fuhsnn@users.noreply.github.com>
Co-authored-by: fuhsnn <66062782+fuhsnn@users.noreply.github.com>
Co-authored-by: Symious <14933944+symious@users.noreply.github.com>
Co-authored-by: Jun Kawasaki <jun784@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/Chapter13Test.java')
| -rw-r--r-- | src/test/java/com/seaofnodes/simple/Chapter13Test.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/com/seaofnodes/simple/Chapter13Test.java b/src/test/java/com/seaofnodes/simple/Chapter13Test.java index 70cfe25e..738a4d15 100644 --- a/src/test/java/com/seaofnodes/simple/Chapter13Test.java +++ b/src/test/java/com/seaofnodes/simple/Chapter13Test.java @@ -116,7 +116,9 @@ if (v1) { return v0.f; """); code.driver(CodeGen.Phase.FinalizeIR); - assertEquals("return ((Phi(Region,((.f<<32)>>32),2)<<32)>>32);", code.print()); + assertEquals("return Phi(Region,((.f<<32)>>32),2);", code.print()); + assertEquals("2",Eval2.eval(code,0)); + assertEquals("0",Eval2.eval(code,1)); } |
